-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Module did not self-register #4
Comments
Hm, nw-dev probably doesn't work with native modules at all right now. But since this is a third party library, you might not need or want it to be unloaded and reloaded, (You might also need to clean up database connections in Tomorrow I'll try to reproduce this and see about adding a cache busting exclusion filter option. |
Can You tell me how to exclude sqlite3? I thought node_modules are ignored by default. Thx for helping. If you have trouble installing sqlite3. The correct command for mac is.
|
There's no option for it yet; the But as a workaround, you could probably manually avoid requiring it multiple times with a global variable: global.sqlite = global.sqlite || require("sqlite3"); |
npm got |
I meant to post this earlier: On second thought, it works fine because of not clearing the cache, but clearing the cache is still desirable for other modules, especially user code. There is apparently Issue in node: nodejs/node#6160 |
With the actual version 24.4 of nw.js i am encountering the following error on reload.
Uncaught Error: Module did not self-register.
at Object.Module._extensions..node (module.js:644:18)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:541:17)
at require (internal/module.js:11:18)
at Object. (/Users/timebro/timeBro/git/mac/front/timeBro.app/Contents/Resources/app.nw/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:597:30)
at Object.Module._extensions..js (module.js:614:10)
at Module.load (module.js:531:32)
The text was updated successfully, but these errors were encountered: