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
版权声明:本文标题:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to hand 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1726296089a1064625.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论