-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
TypeError: fs$ReadStream is undefined #121
Comments
same issue |
tried on: in nodejs v9.4 api documentation, fs object does have could someone give a hand? |
I bypassed this error by adding these last two lines(comment with "fix"), any risks underneath? |
OK, my mistake. I should use node-graceful-fs in a nodejs environment, instead of in browser via webpack. |
Dear Isaacs, Best regards, Anela. |
Here is how I fixed it:
this works because in the docs there are create methods for creating streams. |
@spirosbax was trying your solution but got this error: Uncaught TypeError: Cannot read property 'require' of undefined |
This issue should be resolved by latest graceful-fs. Please let us know if you continue to have problems after updating. |
using graceful-fs version 4.1.11 in create-react-app with "react-scripts": "1.0.17"
The error above is reported when I run yarn start
./node_modules/graceful-fs/graceful-fs.js:166
163 | }
164 |
165 | var fs$ReadStream = fs.ReadStream
./node_modules/configstore/node_modules/graceful-fs/graceful-fs.js
24 | })
25 | }
26 |
./node_modules/configstore/node_modules/graceful-fs/graceful-fs.js
Please investigate, why is happening?
The text was updated successfully, but these errors were encountered: