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文章来源:https://www.toymoban.com/news/detail-806092.html
执行下面的安装(注意axios版本要和自己的项目匹配)文章来源地址https://www.toymoban.com/news/detail-806092.html
npm uninstall axios
npm install axios@0.19.0 --save
到了这里,关于报错/ ./node_modules/axios/lib/platform/index.js Module parse failed: Unexpected token (5:2)怎么解决?的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!