-
Notifications
You must be signed in to change notification settings - Fork 543
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
nosql causes exceptions in Node.js > v10.0.0 #14
Comments
I am having the same issue with Node.js v10.12.0. |
Yes, had the same. Downgraded to 8.0.0 - or "nvm use 8.0", then it worked for me. Didn't try 10.x. Related #18 (comment) I doubt the code will be fixed for newer node versions unless a new edition of the book is planned. |
This code was originally written on a very old version of Node.js. Looks like we might need to run through and update the internal dependencies, thanks for the pointers and confirmations. |
9.2.0 seems to work as well. |
If you do not want to change the node version, here is what you can do
Don't forget to execute
This should fix the issue. Author should update and retest all of the exercises as this issue makes |
I would install NVM, and install node 8 -- this would fix the deprecated issue. |
Is it me or the authorizationServer.js file also requires a conversion from "nosql.all()" to "nosql.all().make(..)"? Otherwise I am getting the same error once updated the "nosql" module to version 6.1.0. |
Should be fixed by #44 |
nosql will cause an exception in
FileReader.prototype.open
line 2388 will cause an exception in Node.js > v10.0.0. The callback parameter is no longer optional forfs.close
. Not passing it will throw a TypeError at runtime. There was a depreciation warning since Node.js v7.0.0. My workaround for now is to changefs.close
tofs.closeSync
in line 2388 of the index.js file in node_modules/nosql. The author has indeicated that he will be making changes to the module soon. Refer to petersirka/nosql#46The text was updated successfully, but these errors were encountered: