?ERROR ?Failed to compile with 1 errors ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 10:52:35
?error ?in ./node_modules/axios/lib/platform/index.js
Module parse failed: Unexpected token (5:2)
You may need an appropriate loader to handle this file type.
|?
| export default {
| ? ...utils,
| ? ...platform
| }?@ ./node_modules/axios/lib/defaults/index.js 8:0-44
?@ ./node_modules/axios/lib/axios.js
?@ ./node_modules/axios/index.js
?@ ./src/js/main.js
?@ multi (webpack)-dev-server/client?http://localhost:81 webpack/hot/dev-server ./src/js/main.js文章來源:http://www.zghlxwxcb.cn/news/detail-806092.html
?執(zhí)行下面的安裝(注意axios版本要和自己的項目匹配)文章來源地址http://www.zghlxwxcb.cn/news/detail-806092.html
npm uninstall axios
npm install axios@0.19.0 --save
到了這里,關(guān)于報錯/ ./node_modules/axios/lib/platform/index.js Module parse failed: Unexpected token (5:2)怎么解決?的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!