Open xiangnanscu opened 2 years ago
After upgrade, I found my babel.config.js changed from
babel.config.js
module.exports = { // https://github.com/babel/babel/issues/9187#issuecomment-447704595 sourceType: "unambiguous", plugins: ["@babel/plugin-proposal-optional-chaining"], presets: [ [ "@vue/app", { // https://github.com/vuejs/vue-cli/issues/1568#issuecomment-406374683 useBuiltIns: "entry", targets: { chrome: "50", ie: "10", }, }, ], ], };
to
module.exports = { // https://github.com/babel/babel/issues/9187#issuecomment-447704595 sourceType: "unambiguous", plugins: ["@babel/plugin-proposal-optional-chaining"], presets: [ [ "@vue/cli-plugin-babel/preset", { // https://github.com/vuejs/vue-cli/issues/1568#issuecomment-406374683 useBuiltIns: "entry", targets: { chrome: "50", ie: "10", }, }, ], ], };
5.0.4
None
Environment Info: System: OS: Linux 5.4 Ubuntu 18.04.5 LTS (Bionic Beaver) CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor Binaries: Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node Yarn: 1.22.15 - ~/.nvm/versions/node/v16.13.2/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm Browsers: Chrome: Not Found Firefox: Not Found 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: ^4.4.6 => 4.5.15 (5.0.4) @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.4 @vue/cli-plugin-babel: ~5.0.4 => 5.0.4 @vue/cli-plugin-eslint: ~5.0.4 => 5.0.4 @vue/cli-plugin-router: ~5.0.4 => 5.0.4 @vue/cli-plugin-vuex: ~5.0.4 => 5.0.4 @vue/cli-service: ~5.0.4 => 5.0.4 @vue/cli-shared-utils: 5.0.4 (4.5.15) @vue/component-compiler-utils: 3.3.0 @vue/eslint-config-prettier: ^6.0.0 => 6.0.0 @vue/reactivity: 3.2.33 @vue/runtime-core: 3.2.33 @vue/runtime-dom: ^3.2.33 => 3.2.33 @vue/shared: 3.2.33 @vue/web-component-wrapper: 1.3.0 eslint-plugin-vue: ^8.5.0 => 8.5.0 typescript: ^4.6.2 => 4.6.2 vue: ^2.6.11 => 2.6.14 vue-eslint-parser: 8.3.0 vue-flash-message: ^0.7.2 => 0.7.2 vue-hot-reload-api: 2.3.4 vue-loader: 17.0.0 (15.9.8) vue-resource: ^1.5.1 => 1.5.3 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-router-sync: ^5.0.0 => 5.0.0 npmGlobalPackages: @vue/cli: Not Found
just run vue-cli-service serve
vue-cli-service serve
vue-cli-service serve worked
vue-cli-service serve doesn't work
still baffled why this isnt fixed somehow without providing overrides to yarn.....
After upgrade, I found my
babel.config.js
changed fromto
Version
5.0.4
Reproduction link
None
Environment info
Steps to reproduce
just run
vue-cli-service serve
What is expected?
vue-cli-service serve worked
What is actually happening?
vue-cli-service serve doesn't work