報錯信息截圖:
報錯原因:第三方組件版本沖突,一般下載axios默認下載的是最新版本1.6.2,而我們只需要將axios的版本改為1.5.0即可
解決辦法:
1-打開項目的文件夾“node_modules”
2-刪除里面的文件夾“axios”
3-在“package.json”中,將axios的版本信息改為1.5.0
文章來源:http://www.zghlxwxcb.cn/news/detail-838298.html
4-在終端輸入命令:npm install axios@1.5.0 --save
5?輸入運行指令“npm run dev”就可以正常運行了
參考連接:vue報錯:Module parse failed: Unexpected token (5:2)You may need an appropriate loader to handle this_module parse failed: unexpected token (5:2) you ma-CSDN博客文章來源地址http://www.zghlxwxcb.cn/news/detail-838298.html
到了這里,關(guān)于vue報錯:in ../node_modules/axios/lib/platform/index.js的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!