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
Initializing tesseract.js with
const worker = createWorker();
returns errorwhen initialized from the renderer process and
when initialized from the main process.