SyntaxError: E:\IdeaProject\src\main.js: Identifier ‘ElementPlus‘ has already been declared的解决方法
疫情偷走了我们多少青春的美好时光!没有假期那就开卷吧~
在做Springboot整合Vue的项目时,难免会遇到各种各样的问题,有的时候可能是后端写的代码出了bug,有时候也可能是前端的效果出了问题,,那我们唯一能做的,就是耐着性子,一个问题一个问题的去解决。下面是我在用Vue做前端时遇到的问题,就此整理了一下,仅供大家参考!
遇到的问题
Module build failed (from .de_modules/babel-loaderb/index.js):
SyntaxError: E:\IdeaProjects\![请添加图片描述](https://img-blog.csdnimg.cn/c9d36e8ab6984fc390345ad4d7129c70.png)
springboot_vue\src\main.js: Identifier 'ElementPlus' has already been declared. (8:7)
解决方法
通过查看项目源码,发现本错误的原因是导入了两次ElementPlus,解决方式就是删除一个即可!
解决完成之后的效果如下:
总结
做为一位后端研发人员,个人认为还是有必要对前端有那么一点了解的,虽然以后不一定走研发这条路,但是感觉随着疫情的存在、岗位的减少、学历的提升,内卷也许会越来越严重,打铁还需自身硬!选择了一条路就坚持走下去,结果至少不会太差,加油~
SyntaxError: E:\IdeaProject\src\main.js: Identifier ‘ElementPlus‘ has already been declared的解决方法相关推荐
- web-packwebpack .\src\main.js .\dist\bundle.js 报错
(1)使用指令 web-pack>webpack .\src\main.js .\dist\bundle.js 报错 (2).问题分析,wbpack版本太高,指令不一样.我的是v4.14.0 ...
- ERROR in multi ./src/main.js dist/bundle.js
原命令 webpack .\src\main.js .\dist\bundle.js 报错 ERROR in multi ./src/main.js ./dist/bundle.js Module n ...
- vue报错:dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/inde
报错信息 These dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/i ...
- Resolve error: unable to load resolver node src\main.js:1:1
✘ https://google.com/#q=import%2Fno-duplicates Resolve error: unable to load resolver "node&quo ...
- 关于使用Webpack时报出:ERROR IN MULTI ./src/main.js .dist/bundle.js 错误的分享
关于Vue使用webpack时出现的"ERROR IN MULTI ./src/main.js .dist/bundle.js Module nor found:Error:Can't re ...
- VUE报错:These dependencies were not found:* element-ui in ./src/main.js* element-ui/lib/theme-chal
报错: These dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/in ...
- Module not found: Error: Can‘t resolve ‘element-ui‘ in ‘D:ui\t-vue1\src‘ error in ./src/main.js
日志报错: ERROR Failed to compile with 2 errors 13:42:12error in ./src/main.jsModule not found: Error: C ...
- This dependency was not found: * common/stylus/index.styl in ./src/main.js To install it, you can ru
有如下错误: This dependency was not found: * common/stylus/index.styl in ./src/main.js To install it, you ...
- vue报错./router in ./src/main.js
./router in ./src/main.js src文件缺少router文件夹和src/router/main.js文件
最新文章
- matlab智能算法30个案例分析_赞!继电保护25个事故案例分析总结,值得收藏!...
- Spring - @Conditional全解
- [机器学习笔记] Note2--单变量线性回归
- 2021知识类内容研究报告
- 程序员“苦逼值”测试,分数越高越苦逼
- 简单理解极大似然估计MLE
- asp向不同的用户发送信息_.Net Core 和 .Net Framework的不同
- 可替代的C语言开发环境
- 校外实习报告(二十)
- python自动化办公-简直出神入化,教你用Python控制Excel实现自动化办公
- AcWing 285. 没有上司的舞会(树形DP)
- dnfdpl服务器维护了,2019DNF心悦DPL赛事活动地址 强化器和时空石没了
- java png生成webp图片_PNG转WEBP格式的动态图
- iso27001认证怎么申请?(iso27001认证基本条件和详细流程)
- 从《目标》、《凤凰项目》到《持续交付》:DevOps 的过去、现在及未来
- 深度——强化学习、深度森林
- Ubuntu下GPAC(MP4Box)的安装 | 基于MP4Box搭建DASH视频系统
- 【转】PHP缓存的实现
- EZchip花1.3亿美元买Tilera然后以8亿美元把自己与Tilera一起卖掉
- 天下武功唯快不破 实验吧(小结)