Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Error: Can't resolve 'fs' #474

Closed
saniko opened this issue Jul 20, 2017 · 4 comments
Closed

Error: Can't resolve 'fs' #474

saniko opened this issue Jul 20, 2017 · 4 comments

Comments

@saniko
Copy link

saniko commented Jul 20, 2017

Hi,
After merging the last PR, got this error message:
Module not found: Error: Can't resolve 'fs'

came across this post
After adding the fs: 'empty', to configFactory.js, it did solve the issue
But now I'm getting errors about config values.

Full error after running yarn:


ERROR in ./config/utils/envVars.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\**\config\utils'
 @ ./config/utils/envVars.js 22:10-23
 @ ./config/values.js
 @ ./config/index.js
 @ ./shared/components/DemoApp/index.js
 @ ./client/index.js
 @ multi regenerator-runtime/runtime ./client/index.js

Running latest node: 8.1.4
Any Idea?

@saniko
Copy link
Author

saniko commented Jul 23, 2017

In addition, I'm getting this error as well:

ERROR in OfflinePlugin: Plugin's runtime wasn't added to one of your bundle entries. See this https://goo.gl/YwewYp for details.

@saniko
Copy link
Author

saniko commented Jul 24, 2017

I have rolled back the webpack related code (the version upgrades and the configFactory.js modifications)
And now all is OK.

Does anyone have an idea why this error occurred?

@diondirza
Copy link
Contributor

In my experience sometimes in Linux if RAM really limited and I have other node instance running this error will show up and I solve it by stop the process and re run.

@saniko
Copy link
Author

saniko commented Jul 26, 2017

Running on windows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants