-
Notifications
You must be signed in to change notification settings - Fork 273
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
NextJS 10.1.2 Error: Cannot find module 'webpack/lib/rules/BasicEffectRulePlugin' #449
Comments
I added webpack to the devDependencies and the error is gone but I think it more a workaround than anything else. Also now I have this error:
There is no further stack trace. Repo is up to date if you want to test: https://github.com/AlexisWalravens/svg-sprite-loader-nextjs-bug-example |
any update on this issue? |
nextjs10.1.2 报错,目前没有办法解决 |
I have the same problem, but no one seems to be maintaining the issues |
Have you completely solved this mistake? |
@pangxiaolong No, as I said it's more a workaround than anything, and it works only when using webpack 4 with NextJS if you switch to v5 the error above is still there. |
I also have this issue. Although the problem is gone when you add I would rather not have |
Do you want to request a feature, report a bug or ask a question?
Report a Bug
What is the current behavior?
NextJS throw this error at runtime:
Error: Cannot find module 'webpack/lib/rules/BasicEffectRulePlugin'
What is the expected behavior?
Everything to be working (had no issue with 10.0.5)
Edit: After testing the error occurs from 10.0.6 and after
https://github.com/vercel/next.js/releases/tag/v10.0.6
If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code.
next.config.js:
The best way is to create repo with minimal setup to demonstrate a problem (package.json, webpack config and your code).
https://github.com/AlexisWalravens/svg-sprite-loader-nextjs-bug-example
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Not that if I manually install webpack (5.28) I have another error just after trying to load the svg:
TypeError: cannot find property 'version' of undefined
There is no stack trace provided.
The text was updated successfully, but these errors were encountered: