WARNING Compiled with 3 warnings 12:55:50
✘ http://eslint.org/docs/rules/no-mixed-spaces-and-tabs Mixed spaces and tabs
src\App.vue:3:2
<headerNav></headerNav>
^
✘ http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\App.vue:3:4
<headerNav></headerNav>
^
✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 1 tab
src\App.vue:9:1
import headerNav from './components/header-nav.vue'
✘ 1 problem (1 error, 0 warnings)
自信心备受打击,没办法,只好百度,发现一篇很象,管他呢,照做再说,最后发现,报错日记里,有提示是哪里有问题
Errors:
1 http://eslint.org/docs/rules/no-trailing-spaces
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
转摘解决方法:
https://segmentfault.com/q/1010000007001988
因为你设置了eslint,如果你不想有规范的js代码,可以重新初始化关掉eslint。
Use ESLint to lint your code? (Y/n) 这一步选no
在bulid/webpack.base.conf.js里面有配置如下:
module: {
rules: [
...(config.dev.useEslint ? [createLintingRule()] : []),
点进config.dev.useEslint,发现在config/index.js里配置
useEslint: true, // 改为false即可。