Open Tzahile opened 3 years ago
vuetify-loader
hasn't supported webpack 5 yet https://github.com/vuetifyjs/vuetify-loader/issues/136.
In this case, please run vue add webpack-4
.
I upgraded mainly for Webpack v.5 😅
If it depends on vuetify-loader
, maybe I should move the issue there?
After all, at some point they need to support it.
Yeah there are two ongoing PRs already: https://github.com/vuetifyjs/vuetify-loader/pull/166 https://github.com/vuetifyjs/vuetify-loader/pull/165
@Tzahile You can now install vuetify-loader@^1.7.3
to fix the issue. :blush:
Version
5.0.0-alpha.2
Reproduction link
https://github.com/Tzahile/vueCLI5-vuetify
Environment info
Steps to reproduce
From scratch (otherwise, if working from repo attached above, just
$npm run serve
):$ vue create new-project
- Set some environment you like. When finished:$ cd vueCLI5-vuetify && npm install && npm run serve
- So far, so good.$ vue add vuetify
- Choose the recommended setup.$ npm run serve
- now won't workWhat is expected?
Webpack should run normally
What is actually happening?
ERROR Error: Cannot find module 'webpack/lib/RuleSet'
Full PS logs
PS C:\Projects\vueCLI5-vuetify> vue add vuetify
📦 Installing vue-cli-plugin-vuetify...
109 packages are looking for funding run
npm fund
for detailsfound 0 vulnerabilities
✔ Successfully installed plugin: vue-cli-plugin-vuetify
? Choose a preset: Default (recommended)
🚀 Invoking generator for vue-cli-plugin-vuetify... 📦 Installing additional dependencies...
added 3 packages from 2 contributors and audited 1993 packages in 24.954s
110 packages are looking for funding run
npm fund
for detailsfound 0 vulnerabilities
⚓ Running completion hooks...
✔ Successfully invoked generator for plugin: vue-cli-plugin-vuetify vuetify Discord community: https://community.vuetifyjs.com vuetify Github: https://github.com/vuetifyjs/vuetify vuetify Support Vuetify: https://github.com/sponsors/johnleider
PS C:\Projects\vueCLI5-vuetify> npm run serve
ERROR Error: Cannot find module 'webpack/lib/RuleSet' Require stack:
vue-cli-service serve
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vueCLI5-vuetify@0.1.0 serve script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\tc02993\AppData\Roaming\npm-cache_logs\2021-01-11T15_19_04_977Z-debug.log