Blank joplin-window launches after npm start

I was running Joplin locally. After I run command npm start from /packages/app-dekstop, it lauches a blank window.
I enabled the debugging, and face an error:
Uncaught ReferenceError: require is not defined at main-html.js:13
I face this error even though nodeIntegration is set to true in ElectronAppWrapper.ts and PluginRunner.ts

How to resolve this error?

Also, the docs suggests not to enable nodeIntegration.

Probably some problem with your build. Maybe start over clean - from the root run npm run clean && npm i. Make sure you use node 12 and npm 6

1 Like

Thanks a lot. I was stuck with this error for a long time. Thanks