Closed ghost closed 8 years ago
Edit: It seems to work except for the sqlite3 module. For some reason the application wants the file node_modules/sqlite3/lib/binding/electron-v0.37-linux-x64/node_sqlite3.node but only node_modules/sqlite3/lib/binding/npm-something/node_sqlite3.node exists. It actually is not "npm-something" but I renamed it and can not remember the correct name.
Hey @raafael911, sqlite is a native component and needs to be recompiled to work with Electron. You can find more information and detailed instructions on how to recompile your extensions here: https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md
No worries, it's pretty easy 👍
Thanks for the quick answer!
Hi, first thanks for this module, it helps me a lot! I want to use a Node module (sqlite3) inside my electron/ember application. For testing I created a new ember application with ember-cli 2.3.0 via
ember new testapp
. Then I rannpm install sqlite3 --save
andember install ember-electron
. Now, when I try to include sqlite3 by writing requireNode('sqlite3') I see this error in the JavaScript console of my electron application. Does anyone have any hints?