-
Notifications
You must be signed in to change notification settings - Fork 27k
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' in CI environment #12288
Comments
This issue is not actionable so I'm not sure what to do here. |
I seem to have found a workaround, so while not an issue for me, maybe an issue for others? |
Will close this issue then as no reproduction is provided so we can't investigate. |
I'm running into this issue too. @tortilaman what was your workaround? |
I have this as well |
running
|
Thanks @Danelund. I no longer had access to the repo I was working on when I encountered this bug, so wasn't really able to figure out the solution I came to. |
I am facing this issue after upgrading to NextJS 10. It only happens in CI env. |
Same here |
Next 10 run successfully for several builds for me 3 days ago, now it started to show the same error. |
same issue here |
Rolling back to [email protected] fixes webpack dependency. |
In the If you add webpack to "dependencies": {
"webpack": "^4.46.0"
} |
@blaxk I can confirm this works indeed. My version of webpack is higher.
|
it happens in |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
In CI environments, when initially trying to start the server after build, it errors out with the following error:
It seems there is an issue with the
mini-css-extract-plugin
as part of @zeit/next-sass.We've been successfully using this plugin for over a year, with different versions of next.js from 6.0 up to 9.2, and a seemingly unrelated commit is now introducing this error that prevents the site from starting.
This was reported previously in the
mini-css-extract-plugin
repo: webpack-contrib/mini-css-extract-plugin#198To Reproduce
I know this isn't helpful, but I'm unable to provide a repository at this time.
Expected behavior
The app should start.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: