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

Cannot find module webpack when updating Next to v13.4.9 #18

Closed
luizeboli opened this issue Jul 7, 2023 · 2 comments
Closed

Cannot find module webpack when updating Next to v13.4.9 #18

luizeboli opened this issue Jul 7, 2023 · 2 comments

Comments

@luizeboli
Copy link

luizeboli commented Jul 7, 2023

After updating Next to v13.4.9 I'm getting a "Cannot find module 'webpack'" error in dev mode

Error: Cannot find module 'webpack'
Require stack:
- <projectPath>/node_modules/next-with-linaria/lib/plugins/errorPlugin.js
- <projectPath>/node_modules/next-with-linaria/lib/webpackConfig.js
- <projectPath>/next.config.js

I tried to investigate if webpack was a peer dependency of both packages but its not, it's a dev dependency for both packages.

Next v13.4.8 works fine.

@luizeboli
Copy link
Author

Might be related to vercel/next.js#52366

@luizeboli
Copy link
Author

Solved in the Next v13.4.10-canary.5

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

1 participant