This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 407
update to 0.7.4 breaks Electron/PouchDB/LevelDB #574
Comments
@NNemec , Thank you for reporting the bug, I will make a PR to fix it. |
JiaLiPassion
added a commit
to JiaLiPassion/zone.js
that referenced
this issue
Jan 1, 2017
…om Zone will break binding.js
+1 for this issue, it breaks bcrypt as well. I personally can't downgrade to 0.6 due to #508, which breaks socket.io (ws)... |
2 tasks
I spent some time trying to reproduce the issue in a fresh project and was unable to... A simple re-installation of bcrypt resolved the issue for me. False alarm! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It took me close to one day to identify zone.js 0.7 as the root cause for this problem and identify a downgrade to 0.6 as possible workaround. I very much hope that someone can pick this up from here and fix the issue so that no one else has to go through the same experience:
To reproduce:
clone, build and run the demo from https://github.com/nolanlawson/hello-electron-with-pouchdb as documents
-> npm install, npm start, to this point everything should work fine (all four database connections work)
include zone.js version 0.6.26 into the project:
a) add '"zone.js": "0.6.26" to dependencies in package.json
b) add '<script src="node_modules/zone.js/dist/zone.js"></script>' to in index.hml
-> npm install, npm start, everything should still work fine
update zone.js to 0.7.4:
-> npm install, npm start, now you get "Error for LevelDB"
(when removing the .catch statement, I can obtain the actual error message as:
Error: Could not locate the bindings file. Tried:
→ /Users/norbert/repo/hello-electron-with-pouchdb/build/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/build/Debug/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/build/Release/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/out/Debug/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/Debug/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/out/Release/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/Release/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/build/default/leveldown.node
→ /Users/norbert/repo/hello-electron-with-pouchdb/compiled/6.5.0/darwin/x64/leveldown.node: unable to import leveldown
at new Error (native)
at requireLeveldown (/Users/norbert/repo/hello-electron-with-pouchdb/node_modules/pouchdb/lib/index.js:5112:12) []
at PouchDB.LevelDownPouch (/Users/norbert/repo/hello-electron-with-pouchdb/node_modules/pouchdb/lib/index.js:5312:17) []
at new PouchDB (/Users/norbert/repo/hello-electron-with-pouchdb/node_modules/pouchdb/lib/index.js:2701:34) []
The text was updated successfully, but these errors were encountered: