Cannot use tesseract from both main process and renderer
Opened this issue · 1 comments
Kastow commented
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 commented
Has anyone figured out this issue? I had the same problem too and none of other Tesseract wrappers worked......