-
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
Cannot find module 'webpack/lib/RuleSet' #359
Comments
As noted in my comment in the Webpack thread the problem comes from the removal of The solution from that What I meant by " |
I have no experience with and their library is marked as compatible with Webpack 5, see here: https://github.com/vuejs/vue-loader/blob/master/package.json#L37 and I also can't find any open issues around |
Yep, that's exactly what I was referring to :)
That line was changed in january, before the
I couldn't find one either, so there you go: vuejs/vue-loader#1599 |
here is my pr add support for webpack5 to add support for webpack5。Hope it helps you guys |
webpack 5 released https://webpack.js.org/blog/2020-10-10-webpack-5-release/ |
any updates? |
Found a workaround without forking or publishing packages. // funcMock.js // prebuild.sh
Make sure change your build (or start) script in package json so it executes sh file before compiling by webpack: And it works |
Fixed in /cc @d3x42. |
Do you want to request a feature, report a bug or ask a question?
bug
What is the current behavior?
throws an error: Cannot find module 'webpack/lib/RuleSet'
What is the expected behavior?
works with webpack 5
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)
Please see webpack/webpack#9802 (comment) and vuejs/vue-loader#1427 (comment)
In a nutshell, webpack needs to be added as a dependency.The text was updated successfully, but these errors were encountered: