I’m trying to use loadUrl in an electron app. And the site which the url points to is an node-app that requires angular.
So when i do this in main.js: mainWindow.loadURL(‘https://www.proposales.com/’);
i get the following error in the console: module.js:442 Uncaught Error: Cannot find module ‘angular’
i have installed and added angular to package.json like this:
If i set a breakpoint in module.js on line 442 i can see that electron looks for the module angular in “/usr/local/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/exports” instead of my node_modules folder where i have angular.
Am i missing something?