Skip to content

Cannot use tesseract from both main process and renderer #66

@Kastow

Description

@Kastow

Initializing tesseract.js with const worker = createWorker(); returns error

....webpack\renderer\main_window\index.js:979
/******/                self["webpackHotUpdateelectron_react_typescript"] = (chunkId, moreModules, runtime) => {
                        ^

ReferenceError: self is not defined

when initialized from the renderer process and

.webpack\main\index.js:45199
electron__WEBPACK_IMPORTED_MODULE_2__.app.on('ready', createWindow).whenReady().then(registerListeners)["catch"](function (e) {
                                          ^

TypeError: Cannot read properties of undefined (reading 'on')

when initialized from the main process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions