For a angular2/electron learning app I use LinvoDB for persistent data storage based on the angular2-electron-starter seed that comes with two package.json one in root/ one in root/electron. After successful packaging the app.exe throws this error:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'linvodb3'
So far I tried:
- installing linvodb3 in / and /electron (npm install linvodb3 --save)
- installing linvodb3 with --build-from-source
- using electron-rebuild in both directories
- apm install
multiple deinstallations and installations of various packages recommended at similar questions.
var LinvoDB = require('linvodb3'); in the according module and main.js
- const LinvoDB = require('electron').remote.require('linvodb3');
- var LinvoDB = require('linvodb3'); in index.html similar to the jQuery questions.
The only thing I read about and couldn't try was to set the NODE_PATH manually cause I couldn't find a file where it's specified.