@vue/cli-service@5.0.0-beta.7 uses cache-loader which depends on webpack@4
See original GitHub issueVersion
5.0.0-beta.7
Environment info
Environment Info:
System:
OS: macOS 11.6
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 14.17.0 - /usr/local/bin/node
Yarn: Not Found
npm: 6.14.13 - /usr/local/bin/npm
Browsers:
Chrome: 95.0.4638.54
Edge: 95.0.1020.30
Firefox: 93.0
Safari: 15.0
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.2
@vue/babel-plugin-jsx: 1.1.1
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 5.0.0-beta.7
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 5.0.0-beta.7
@vue/cli-plugin-babel: ^5.0.0-beta.7 => 5.0.0-beta.7
@vue/cli-plugin-eslint: ^5.0.0-beta.7 => 5.0.0-beta.7
@vue/cli-plugin-router: ^5.0.0-beta.7 => 5.0.0-beta.7
@vue/cli-plugin-unit-jest: ^5.0.0-beta.7 => 5.0.0-beta.7
@vue/cli-plugin-vuex: ^5.0.0-beta.7 => 5.0.0-beta.7
@vue/cli-service: ^5.0.0-beta.7 => 5.0.0-beta.7
@vue/cli-shared-utils: 5.0.0-beta.7
@vue/component-compiler-utils: 3.3.0
@vue/eslint-config-airbnb: ^5.3.0 => 5.3.0
@vue/test-utils: ^1.2.2 => 1.2.2 (2.0.0-rc.16)
@vue/vue2-jest: ^27.0.0-alpha.3 => 27.0.0-alpha.3
@vue/web-component-wrapper: 1.3.0
eslint-plugin-vue: ^7.6.0 => 7.20.0
jest-serializer-vue: 2.0.2
typescript: 3.9.10
vue: ^2.6.11 => 2.6.14 (2.6.12)
vue-cli-plugin-i18n: ^2.3.1 => 2.3.1
vue-eslint-parser: 7.11.0
vue-hot-reload-api: 2.3.4
vue-i18n: ^8.17.3 => 8.26.5 (8.22.2)
vue-i18n-extract: 1.0.2
vue-loader: 16.8.2 (15.9.8)
vue-meta: ^2.4.0 => 2.4.0
vue-router: ^3.2.0 => 3.5.3
vue-style-loader: 4.1.3
vue-template-compiler: ^2.6.11 => 2.6.14
vue-template-es2015-compiler: 1.9.1
vuex: ^3.4.0 => 3.6.2
vuex-persist: 3.1.3
npmGlobalPackages:
@vue/cli: 4.5.13
Steps to reproduce
npm ls cache-loader gives:
└─┬ @vue/cli-service@5.0.0-beta.7
└── cache-loader@4.1.0
npm ls webpack gives:
├─┬ @vue/cli-plugin-babel@5.0.0-beta.7
│ └── UNMET PEER DEPENDENCY webpack@5.60.0
├─┬ @vue/cli-plugin-eslint@5.0.0-beta.7
│ └── UNMET PEER DEPENDENCY webpack@5.60.0 deduped
└─┬ @vue/cli-service@5.0.0-beta.7
├─┬ @types/webpack-dev-server@4.3.1
│ ├─┬ @types/webpack-dev-middleware@5.0.2
│ │ └── UNMET PEER DEPENDENCY webpack@5.60.0 deduped
│ └── UNMET PEER DEPENDENCY webpack@5.60.0 deduped
└── UNMET PEER DEPENDENCY webpack@5.60.0 deduped
npm ERR! peer dep missing: webpack@^4.0.0, required by cache-loader@4.1.0
What is expected?
No need for cache-loader anymore, because this only works for webpack@4, and cli-service et al. is on webpack@5
What is actually happening?
cache-loader is installed
It is not really a problem, I mean everything still works (unit-tests, serve, build,…) but npm 7 and up will become more strict with peerDependencies, so this might become a real issue in the future.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:25
- Comments:7 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As mentioned in this ticket (https://github.com/vuejs/vue-cli/issues/7095) it (cache-loader) is no longer installed. You might need to remove your lock file and node_modules, and do a new npm install…
Any chance to revive this issue/pull request? Seems to me to have “become a real issue”. I’d prefer not to downgrade to npm 6…