-
Notifications
You must be signed in to change notification settings - Fork 916
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' #1427
Comments
i have the same error, however const RuleSet = require('webpack/lib/RuleSet') is exists in plugin.js file |
any ways to solve? |
@935839596 webpack already added as a peer dependency in the latest version. Now there should be a warning if you didn’t manually install webpack alongside vue-loader. |
I had to add the following to webpack.config.js to get around this error: var webpack = require('webpack'); |
add webpack package to ur package.json, cause vue-loader is based on it |
Any updates? |
I'm also having this problem, none of the above suggestions work |
Check this #1586 (comment) |
This happens with the |
tried doing this, still no luck. *btw, I'm using nuxt and trying to configure nuxt-highcharts |
I have the same problem, any ways to solve? :( |
It has to be webpack ^4.0.0 as the file was removed in v5. webpack/webpack@74d4669#diff-f953e9f47b1aa87d20fc094ba839f3b5c5e145cf963ba0c151185bd3f344cdd3 |
"has to"... well, if we have packages that depends on webpack5, we can't really ask them to use a downgraded version though |
Both v15 & v16 have already added support for webpack 5. So if you still encounter this issue, please open a new issue with a minimal reproduction. |
FYI, this was the only relevant search result when I also encountered the error you mentioned @hieutranminh in a Nuxt project. So in case anyone else out there is also trying to use Webpack 5 with Nuxt, it's a matter of @nuxt/components not yet supporting webpack5, and we can move that discussion over there: nuxt/components#105 |
Oh yes, sorry, I only added my comment to help those getting dropped off from search engines. |
this solved my problem |
Version
15.4.0
Reproduction link
https://www.npmjs.com/package/vue-loader/v/15.4.2
Steps to reproduce
Init a project without installing webpack locally , and run global
webpack
in terminalWhat is expected?
webpack build successfully
What is actually happening?
Error: Cannot find module 'webpack/lib/RuleSet'
Due to line 2 in
node_modules/vue-loader/lib/plugin.js
The text was updated successfully, but these errors were encountered: