个人名片:
作者简介:一名大二在校生
个人主页:坠入暮云间x
座右铭:懒惰受到的惩罚不仅仅是自己的失败,还有别人的成功。
**学习目标: 坚持每一次的学习打卡
文章目录
谁懂啊家人们,每次运行vue文件的时候总会给我蹦出个莫名其妙的报错,这个问题真的一直令我头疼,折磨了我一天,无意中发现了问题并解决了这个问题,我的项目终于可以正常运行了!!!
我遇到的问题![http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed vue运行时报错_第1张图片](http://img.e-com-net.com/image/info8/45abd709d9494a96be21fa1b5fd35aa1.jpg)
原因是:config/index.js
文件配置为 useEslint: false,
此处把 flase改为true即可
于是我尝试着打开main.js文件,将
Vue.config.productionTip = false
改成了true,这个困扰了我许久的问题莫名其妙的就解决了,项目也就可以正常运行了
![http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed vue运行时报错_第2张图片](http://img.e-com-net.com/image/info8/4f17679a4d224413b4fb8c5593c9261e.jpg)
![http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed vue运行时报错_第3张图片](http://img.e-com-net.com/image/info8/96b9dedeec3d4357b825f0df6ff35869.jpg)