鍍金池/ 問答/網(wǎng)絡安全  HTML/ vue 解析器錯誤

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啟動過程中,不停提示出現(xiàn)這樣的文字.字面意思我知道..但是解析器是個啥啊..有人遇到過這樣的問題么...

回答
編輯回答
魚梓

可能原因是vue-loader的版本沒跟上其他包的版本導致解析器不運行,在我把vue-loader包全都更新到14.2.3之后,該錯誤就不報了

2017年5月29日 19:11
編輯回答
入她眼

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

2018年7月12日 11:18
編輯回答
喵小咪

路徑解析出錯。解析器就是webpack的一些loader,比如url-loader解析圖片、字體等,vue-loader解析.vue組件等

2017年5月28日 20:57