Module parse failed: Unexpected token (5:2) You may need an appropriate loader to hand

vue axios版本引用报错

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

Module parse failed: Unexpected token (5:2) You may need an appropriate loader to hand_第1张图片

换个低版本的问题就解决

npm uninstall axios --legacy-peer-deps

npm install axios@1.5.0 --save

Module parse failed: Unexpected token (5:2) You may need an appropriate loader to hand_第2张图片

你可能感兴趣的:(vue,vue.js)