vue项目启动不了,报错You may use special comments to disable some warnings.

image.png

关闭了eslint,搞定。
vue-cli脚手架关闭eslint的步骤:
1.打开 build文件夹下面的webpack.base.conf.js;
2.找到下面这段代码,并将它注释掉:
const createLintingRule = () => ({
// test: /.(js|vue)$/,
// loader: 'eslint-loader',
// enforce: 'pre',
// include: [resolve('src'), resolve('test')],
// options: {
// formatter: require('eslint-friendly-formatter'),
// emitWarning: !config.dev.showEslintErrorsInOverlay
// }
})

你可能感兴趣的:(vue项目启动不了,报错You may use special comments to disable some warnings.)