前端_VS Code_解决Vue取消eslint语法限制

出现问题:
编译运行一直失败,提示65个errors,并提示如下:
“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. ”

问题原因:Vue对语法的严格限制

解决方法:在build/webpack.base.conf.js文件中,注释或者删除掉:module->rules中有关eslint的规则
在这里插入图片描述
重新运行npm run dev即可

猜你喜欢

转载自blog.csdn.net/lixiaoyu101/article/details/84854931
今日推荐