Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use tesseract from both main process and renderer #66

Open
Kastow opened this issue Sep 23, 2021 · 1 comment
Open

Cannot use tesseract from both main process and renderer #66

Kastow opened this issue Sep 23, 2021 · 1 comment

Comments

@Kastow
Copy link

Kastow commented Sep 23, 2021

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.

@niwatoro
Copy link

niwatoro commented Apr 4, 2023

Has anyone figured out this issue? I had the same problem too and none of other Tesseract wrappers worked......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants