Open BackgroundLogic opened 5 years ago
@BackgroundLogic I think you would have to upgrade the package version...
added ', webPreferences: {nodeIntegration: true}' to the variable defining the new electron window, node integration is false in electron 5.0.0+ by default, due to this require is not defined
Worked for me. Thanks :) 👍
I was not able to import 'cat-picture' without this. Just putting this here for the future.
I came here to make this PR, only to find out it already exists :D
Found the issue had already been reported https://github.com/maxogden/elementary-electron/issues/3 and the PR already posted.
Could we get this merged, please? :) @maxogden @zeke ? or who's the maintainer now?
added ', webPreferences: {nodeIntegration: true}' to the variable defining the new electron window, node integration is false in electron 5.0.0+ by default, due to this require is not defined