报错信息:
% yarn dev
yarn run v1.22.19
$ vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 1 error
Syntax Error: Error: No ESLint configuration found in /...
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.
方式一:打开package.json将以下代码删除,重新运行项目 yarn dev
删除
"@vue/cli-plugin-eslint": "4.4.4",
yarn dev
运行就可以了
方式二:打开vue.config.js加入以下代码
module.exports = {
lintOnSave:false //关闭语法监测
}
文章来源:https://www.toymoban.com/news/detail-860665.html
运行就可以了文章来源地址https://www.toymoban.com/news/detail-860665.html
到了这里,关于运行报错 ERROR Failed to compile with 1 error Syntax Error: Error: No ESLint configuration found的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!