admin管理员组

文章数量:1565815

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
> test-vue2@0.1.0 serve
  Note that the development build is not optimized.
  To create a production build, run npm run build.

换个低版本的问题就解决

npm uninstall axios --legacy-peer-deps

npm install axios@1.5.0 --save


本文标签: failedparseModuleunexpectedhand