-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Cannot find module 'long'
error when trying to run @tensorflow/tfjs
module in Node.js
#6841
Comments
Thank you, we do not support |
Thanks for the bug report @tamaina.
This works fine in yarn 1.x.x, but maybe yarn berry has stricter (and more correct) dependency resolution. I'll look into why the node bundle has the line |
Hi, @tamaina Apologize for the delayed response and It seems like this issue has been taken care after merging this PR #8764 and now we are able to include
|
With yarn, the issue of missing dependencies could be solved by editing .yarnrc.yml. However, our project is now using pnpm. We have no problem. Thanks for your reply. |
System information
Describe the problem
I got
Cannot find module 'long'
error when trying to run@tensorflow/tfjs
module in Node.js.I think this is a behavior specific to Yarn berry (I am using v3.2.1).
I think one of the reasons is that its package.json does not contain
long
dependency.tfjs/tfjs/package.json
Line 77 in 52d30d6
I got it to work by adding
long
to the dependency in my yarn.lock.Why doesn't @tensorflow/tfjs include long as a dependency?
The text was updated successfully, but these errors were encountered: