vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

Version of the peer dependency @vue/compiler-sfc should be bumped #6525

Closed RomainLanz closed 3 years ago

RomainLanz commented 3 years ago

Hey! 👋

Version

5.0.0-beta.2

Environment info

Environment Info:

  System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  Binaries:
    Node: 14.15.1 - ~/.volta/tools/image/node/14.15.1/bin/node
    Yarn: 1.22.10 - ~/.volta/tools/image/yarn/1.22.10/bin/yarn
    npm: 7.0.13 - ~/.volta/tools/image/npm/7.0.13/bin/npm
  Browsers:
    Chrome: 91.0.4472.77
    Edge: 91.0.864.41
    Firefox: Not Found
    Safari: 14.1.1
  npmPackages:
    @headlessui/vue: ^1.2.0 => 1.2.0 
    @tiptap/vue-3: ^2.0.0-beta.41 => 2.0.0-beta.41 
    @vue/babel-helper-vue-jsx-merge-props:  1.2.1 
    @vue/babel-helper-vue-transform-on:  1.0.2 
    @vue/babel-plugin-jsx:  1.0.6 
    @vue/babel-plugin-transform-vue-jsx:  1.2.1 
    @vue/babel-preset-app:  5.0.0-beta.2 
    @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.2 
    @vue/cli-plugin-babel: ~5.0.0-beta.2 => 5.0.0-beta.2 
    @vue/cli-plugin-eslint: ~5.0.0-beta.2 => 5.0.0-beta.2 
    @vue/cli-plugin-router: ~5.0.0-beta.2 => 5.0.0-beta.2 
    @vue/cli-plugin-typescript: ~5.0.0-beta.2 => 5.0.0-beta.2 
    @vue/cli-plugin-vuex: ~5.0.0-beta.2 => 5.0.0-beta.2 
    @vue/cli-service: ~5.0.0-beta.2 => 5.0.0-beta.2 
    @vue/cli-shared-utils:  5.0.0-beta.2 
    @vue/compiler-core:  3.1.1 
    @vue/compiler-dom:  3.1.1 
    @vue/compiler-sfc: ^3.1.1 => 3.1.1 
    @vue/compiler-ssr:  3.1.1 
    @vue/component-compiler-utils:  3.2.1 
    @vue/devtools-api:  6.0.0-beta.12 
    @vue/eslint-config-prettier: ^6.0.0 => 6.0.0 
    @vue/eslint-config-typescript: ^7.0.0 => 7.0.0 
    @vue/reactivity:  3.1.1 
    @vue/runtime-core:  3.1.1 
    @vue/runtime-dom:  3.1.1 
    @vue/shared:  3.1.1 
    @vue/web-component-wrapper:  1.3.0 
    @xstate/vue: ^0.5.0 => 0.5.0 
    @yzfe/vue-cli-plugin-svgicon: ~1.0.4 => 1.0.4 
    @yzfe/vue3-svgicon: ^1.0.1 => 1.0.1 
    eslint-plugin-vue: ^7.10.0 => 7.10.0 
    typescript: ~4.2.4 => 4.2.4 
    vue: ^3.1.1 => 3.1.1 
    vue-eslint-parser:  7.6.0 
    vue-hot-reload-api:  2.3.4 
    vue-loader:  16.2.0 (15.9.7)
    vue-multiselect: ^3.0.0-alpha.2 => 3.0.0-alpha.2 
    vue-router: ^4.0.8 => 4.0.8 
    vue-style-loader:  4.1.3 
    vue-template-es2015-compiler:  1.9.1 
    vuex: ^4.0.1 => 4.0.1 
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

What is expected?

Everything should work.

What is actually happening?

npm@7 complains about the peer dependency @vue/compiler-sfc in @vue/cli-service@"~5.0.0-beta.2" and @vue/cli-plugin-typescript@"~5.0.0-beta.2"for being too high.


The change should be quite simple, only bump the version of @vue/compiler-sfc inside the different packages of the CLI. I am opening the issue because I do not have the time right now to do the changes, I can see later today if I have the time to open a PR if no one fixed it in the meanwhile.

RomainLanz commented 3 years ago

Never mind, it seems that it does not trigger the warning after deleting the node_modules folder and re-installing everything.

The version ^3.1.1 satisfies the constraint ^3.0.0-beta.14.