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' #1278
Comments
|
I got same issues: |
|
How about if you run yarn directly e.g.
Or did you do that already? |
|
When I run Tried to run The problem seems like to be in yarn v0.17.10 |
|
How about after installing with What about The only thing |
|
Yes, I'm able to run The problem seems to lead into webpack.dll build run by: |
|
Same issue too while running npm run build:dll. I've also tried deleting node_modules, didn't change it. |
|
Hi, I am using react-boilerplate v3.3.3 with Node v6.9.2 with npm v3.10.9. I added a new dependency (Raven v1.1.1) and when I run npm run build:dll facing the same Error. Here is the stack error: ` ERROR in ./ ERROR in ./ ERROR in ./ |
|
I found the error for myself at least, the docs didn't state all that well. You just need to add the conflicting package to |
|
I re-cloned the repo and no longer get this error. Not sure if it's due to a recent commit or something on my local machine. |
|
Closing because I can no longer replicate. |
|
One of the things that can cause this bug is adding packages to the wrong dependency section. For instance |
|
I just had the same problem from a fresh clone of the repo. I had to add this to the "webpack.base.babel.js" config: I found the workaround here: webpack-contrib/css-loader#447 |
Solution from here: react-boilerplate/react-boilerplate#1278. Sort of works but creates graceful-fs exception during runtime.
Solution taken from here: react-boilerplate/react-boilerplate#1278. Solved on problem and created another. This time with graceful-fs. We get a runtime exception with the error: Uncaught TypeError: Cannot read property 'prototype' of undefined. More info: isaacs/node-graceful-fs#70
Solution taken from here: react-boilerplate/react-boilerplate#1278. Solved on problem and created another. This time with graceful-fs. We get a runtime exception with the error: Uncaught TypeError: Cannot read property 'prototype' of undefined. More info: isaacs/node-graceful-fs#70
Solution taken from here: react-boilerplate/react-boilerplate#1278. Solved on problem and created another. This time with graceful-fs. We get a runtime exception with the error: Uncaught TypeError: Cannot read property 'prototype' of undefined. More info: isaacs/node-graceful-fs#70
Solution taken from here: react-boilerplate/react-boilerplate#1278. Solved on problem and created another. This time with graceful-fs. We get a runtime exception with the error: Uncaught TypeError: Cannot read property 'prototype' of undefined. More info: isaacs/node-graceful-fs#70
|
I ended up trying @sebelga 's solution, but it still didn't work – I found another suggestion on a different GH issue and this is what ended up working for me. In your
Hope this helps! |
|
Thanks @coleclayman! I had no luck with what seemed like an endless stream of other suggested fixes but your approach worked for me (in my case it was a host of packages but |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Module not found: Error: Can't resolve 'fs' in '/Users/js/code/react/react-boilerplate/node_modules/shelljs/src'
Issue Type
Description
I've used this boilerplate successfully in the past. First I tried it with yarn installed. Then, I uninstalled yarn and tried again. Same error both times.
Steps to reproduce
Versions
The text was updated successfully, but these errors were encountered: