Use // eslint-disable-next-line to ignore the next line.解决办法

npm start 启动服务的时候,出现了一下报错:

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.

都是因为开启了eslint 编码规范检查

解决办法:

1.找到webpack.base.conf.js文件:

找到这行代码注释掉就可以了!!

 //...(config.dev.useEslint ? [createLintingRule()] : []),

示例如下:

Use // eslint-disable-next-line to ignore the next line.解决办法_第1张图片

 2.npm start 执行之后就正常运行了!!

你可能感兴趣的:(Vue,Vue)