vue 解析器错误

No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please specify a parser or a filepath s 68% building modules 1149/1186 modules 37 active ...tendsrccomponentsDndListindex.vue

项目dev启动过程中,不停提示出现这样的文字.字面意思我知道..但是解析器是个啥啊..有人遇到过这样的问题么...

阅读 7.2k
3 个回答
✓ 已被采纳新手上路,请多包涵

可能原因是vue-loader的版本没跟上其他包的版本导致解析器不运行,在我把vue-loader包全都更新到14.2.3之后,该错误就不报了

路径解析出错。解析器就是webpack的一些loader,比如url-loader解析图片、字体等,vue-loader解析.vue组件等

新手上路,请多包涵

试下 npm install prettier@1.12.1 --save-dev

推荐问题