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 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/main.js @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
版本冲突,一般下载axios默认下载的是最新版本1.6.2,而我们只需要将axios的版本改为1.5.0即可
解决:
1、先卸载原来的:npm uni axios
2、安装新的:npm install [email protected] --save
标签:node,1.5,axios,modules,js,Vue,报错 From: https://www.cnblogs.com/youxl189/p/18029530