-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
Build for nw.js v0.12.3 in order to use child_process.fork ? #521
Comments
HI @hems, Doc suggest to do:
But it doesn't seem to work on my installation. |
@TwanoO67 i have it working with 0.8.6, and it seems that sqlite supports also 0.10, but this child_process.fork issue seems to be solved on 0.12. I might be wrong, to be honest this still a bit confusing for me, but it seems that for some reason sqlite3 module would have to "officially support" 0.12 in order for it to work. |
I've been able to build it correctly for nw.js 0.12.3 with the npm command from the docs as @TwanoO67 suggested. Is your installed node version the same as nw.js 0.12.3 is built upon (io.js 1.2.0 IIRC)? |
@rbfowler9lfc thanks a lot for the tip! i'll have a better look at that asap! thanks! |
@rbfowler9lfc did a npm install to get all dependencies, after that i build only sqlite with
It builds OK and all seems fine, but then when opening my app using nw.js version 0.12.3 I still i get this error: [3819:1108/005039:ERROR:nw_shell.cc(336)] Error: Cannot find module '/Volumes/[...]/app/node_modules/sqlite3/lib/binding/node-webkit-v0.12.3-darwin-ia32/node_sqlite3.node' |
Actually was my bad, i was using the 32 version of nw.js so i had to tweak the target_arch to "ia32", which is the one my nw.js file was complaining about. will do some more tests but it seems to be OK |
nwjs is not yet supported, main ticket is #497 |
Hello Guys,
It seems that nw.js is closing this issue nwjs/nw.js#213 which allows nw.js apps fork child_process which are very useful when doing huge SQLite queries - which still freezing my UI when running on node-webkit 0.8.6.
Any chance we could get it working with v0.12.3 ?
Or Is there any documented workaround in order to perform the query in background without freezing the GUI ?
Thank you!
The text was updated successfully, but these errors were encountered: