-
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
Module not found: Error: Can't resolve 'fs' #1274
Comments
Experiencing the exact same issue....reverting back to 0.14.1 works for me |
hi @davidshen84 and @djimoh5 @tensorflow/tfjs-data is part of the @tensorflow/tfjs union package. The error is because of angular-cli does not support modules in node like "fs" and "path". Original issue: angular/angular-cli#10681 I tested locally and the "fs" can be resolve by adding |
Instead of asking our users to specify the browser field in their I found those 3 packages when I searched for 'require()' usages in tfjs-data repo. @kangyizhang can you do that? Thanks! |
@dsmilkov totally agree with you. Sent PR tensorflow/tfjs-data#147 |
Why this error happens every time updated version??? |
@NiNJAD3vel0per are you still seeing this error? Could you make sure you remove node_modules and re-install? |
i have same issues in my react app |
I'm using
I get the same error:
To illustrate:
|
TensorFlow.js version
Browser version
Describe the problem or feature request
My Angular app was using tfjs@0.13.4. When I try to upgrade to
0.15.1
, I got this error when executing theng build
command. But I am not even using thetfjs-data
component.After I revert tfjs to 0.13.4, my code compiles and the app worked again.
Code to reproduce the bug / link to feature request
All the dependencies in my app.
The text was updated successfully, but these errors were encountered: