一.关闭eslint
描述:在启动的时候如果有eslint校验规范,会有大量的提示错误,看起来很烦躁,如下图:
解决办法:找到项目的build/webpack.base.conf.js文件,然后注释createLintingRule方法中的内容,如下图:
二.出现了大量的No parser and no filepath given, using ‘babel’。。。
就是这种:
No parser and no filepath given, using ‘babel’ the parser now but this will throw an error in the future. Please specify a parse 66% building modules 955/1020 modules 65 active …vue/src/components/icon-svg/index.vue
如下图:
解决办法:
升级 vue-loader 版本
13 稳定版
npm install -S vue-loader@13.7.2
14 稳定版(如升级了13依旧有babel报错 请升级这个)
npm install -S vue-loader@14.2.4
三.renren-fast-master出现配置错误
改成如图配置:
目前遇到的问题有这些,如果再遇到其他的会进行补充。当然,如果运行期间项目出现了找不到某些文件的时候,多半是没有引用到,各位同学如果在git上拉取别人的代码,启动不起来的话注意和官网的源码进行比较。