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": "^3.0.3" has a bug #26
Comments
Thank you Kanian. |
You are welcome @amchavan |
shalgrim
added a commit
to shalgrim/oauth-in-action-code
that referenced
this issue
Apr 4, 2020
if your node version is newer,for example v10.15.0, you can fix it like following:
This is my code:
|
Should be fixed by #44 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To anybody going through the exercises after node v10.0.0,
nosql v3.0.3, used in the code exercises, has a bug in FileReader.prototype.open in index.js line 2388. The callback in fs signature is no longer optional since v7.0.0 and throws an error since node v10.0.0
However, newer versions of nosql, have a different API than the one used in the exercises code. A quick fix, just to follow the exercises: in the node_modules/nosql/index.js, at line 2388, change
fs.close(fd);
tofs.close(fd, err=>{console.log(err)});
Cheers
The text was updated successfully, but these errors were encountered: