Skip to content
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

[generator] Webpack Error: Cannot resolve module node_modules/webpack/buildin/module.js #306

Closed
mypark opened this issue Nov 10, 2015 · 6 comments

Comments

@mypark
Copy link

mypark commented Nov 10, 2015

template project causing a webpack error when building or running

ERROR in ./client.js
Module not found: Error: Cannot resolve module 'node_modules/webpack/buildin/module.js' in /Users/Projects/fluxible
 @ ./client.js 1:0-49

ERROR in ./app.js
Module not found: Error: Cannot resolve module 'node_modules/webpack/buildin/module.js' in /Users/Projects/fluxible
 @ ./app.js 1:0-49

It used to work earlier last week so not sure if there was an update to a dependency that's causing this issue.

The file node_modules/webpack/buildin/module.js exists so not sure what the error could be.

I've tried with a fresh install as well as going to old installs. The old installs work until I delete the node_modules and reinstall using npm install - in which case they get the same error as well.

@mypark mypark changed the title Error: Cannot resolve module 'node_modules/webpack/buildin/module.js Error: Cannot resolve module 'node_modules/webpack/buildin/module.js' Nov 10, 2015
@mypark mypark changed the title Error: Cannot resolve module 'node_modules/webpack/buildin/module.js' Error: Cannot resolve module node_modules/webpack/buildin/module.js Nov 10, 2015
@mypark
Copy link
Author

mypark commented Nov 10, 2015

Looks like its a webpack version issue, the version should be "1.2.12" instead of "^1.4.12". It currently installs 1.2.13 which causes that error.

@mridgway
Copy link
Collaborator

Thanks, we'll lock it down in the generator for now.

@mridgway
Copy link
Collaborator

Released v1.2.3 of generator-fluxible with webpack locked down. We'll leave this open for now to track webpack issue.

Thanks again @mypark!

@mridgway mridgway changed the title Error: Cannot resolve module node_modules/webpack/buildin/module.js [generator] Webpack Error: Cannot resolve module node_modules/webpack/buildin/module.js Nov 10, 2015
@mridgway
Copy link
Collaborator

Blocking issue: webpack/webpack#1596

@mridgway
Copy link
Collaborator

Webpack bug was fixed and I have released a new version that bumps and loosens the dependency.

@maryadipoipo
Copy link

maryadipoipo commented Aug 4, 2016

I have the same issue, I put it here : webpack/webpack#1596 (comment)
Please help, I have tried several ways I found from another page, but the errors are still there...

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

No branches or pull requests

3 participants