After creating a new app, if you try to import a node library, you get the following error: 'requireNode' is not defined
The current workaround is to go to node_modules/ember-electron/lib/resources and edit both of the files and change (this) at the bottom to (window). While the workaround works, it will fail in CI's and other places where you cant easily modify the node_modules.
After creating a new app, if you try to import a node library, you get the following error:
'requireNode' is not defined
The current workaround is to go to
node_modules/ember-electron/lib/resources
and edit both of the files and change(this)
at the bottom to(window)
. While the workaround works, it will fail in CI's and other places where you cant easily modify thenode_modules
.Thanks.