Closed
Description
Version
4.4.4
Environment info
Environment Info:
System:
OS: macOS 10.15.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Binaries:
Node: 14.4.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Browsers:
Chrome: 83.0.4103.61
Edge: 83.0.478.50
Firefox: 72.0.2
Safari: 13.1.1
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.1.2
@vue/babel-preset-app: 4.4.4
@vue/babel-preset-jsx: 1.1.2
@vue/babel-sugar-functional-vue: 1.1.2
@vue/babel-sugar-inject-h: 1.1.2
@vue/babel-sugar-v-model: 1.1.2
@vue/babel-sugar-v-on: 1.1.2
@vue/cli-overlay: 4.4.4
@vue/cli-plugin-babel: ~4.4.0 => 4.4.4
@vue/cli-plugin-eslint: ~4.4.0 => 4.4.4
@vue/cli-plugin-router: 4.4.4
@vue/cli-plugin-vuex: 4.4.4
@vue/cli-service: ~4.4.0 => 4.4.4
@vue/cli-shared-utils: 4.4.4
@vue/component-compiler-utils: 3.1.2
@vue/preload-webpack-plugin: 1.1.1
@vue/web-component-wrapper: 1.2.0
eslint-plugin-vue: ^6.2.2 => 6.2.2
vue: ^2.6.11 => 2.6.11
vue-eslint-parser: 7.1.0
vue-hot-reload-api: 2.3.4
vue-loader: 15.9.2
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.11 => 2.6.11
vue-template-es2015-compiler: 1.9.1
npmGlobalPackages:
@vue/cli: 4.4.4
Steps to reproduce
我把
import xyz from './components/XZY'
错写成了
import {xyz} from './components/XZY'
,然后 npm run serve
What is expected?
报错并结束编译
error in ./src/App.vue?vue&type=script&lang=js&
"export 'XYZ' was not found in './components/XZY'
What is actually happening?
警告并忽略了问题
warning in ./src/App.vue?vue&type=script&lang=js&
"export 'XYZ' was not found in './components/XZY'