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

vue 解析器錯(cuò)誤

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

項(xiàng)目dev啟動(dòng)過程中,不停提示出現(xiàn)這樣的文字.字面意思我知道..但是解析器是個(gè)啥啊..有人遇到過這樣的問題么...

回答
編輯回答
魚梓

可能原因是vue-loader的版本沒跟上其他包的版本導(dǎo)致解析器不運(yùn)行,在我把vue-loader包全都更新到14.2.3之后,該錯(cuò)誤就不報(bào)了

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

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

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

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

2017年5月28日 20:57