疫情偷走了我们多少青春的美好时光!没有假期那就开卷吧~
在做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的解决方法相关推荐

  1. web-packwebpack .\src\main.js .\dist\bundle.js 报错

    (1)使用指令 web-pack>webpack .\src\main.js  .\dist\bundle.js  报错 (2).问题分析,wbpack版本太高,指令不一样.我的是v4.14.0 ...

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. 关于使用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 ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. vue报错./router in ./src/main.js

    ./router in ./src/main.js src文件缺少router文件夹和src/router/main.js文件

最新文章

  1. matlab智能算法30个案例分析_赞!继电保护25个事故案例分析总结,值得收藏!...
  2. Spring - @Conditional全解
  3. [机器学习笔记] Note2--单变量线性回归
  4. 2021知识类内容研究报告
  5. 程序员“苦逼值”测试,分数越高越苦逼
  6. 简单理解极大似然估计MLE
  7. asp向不同的用户发送信息_.Net Core 和 .Net Framework的不同
  8. 可替代的C语言开发环境
  9. 校外实习报告(二十)
  10. python自动化办公-简直出神入化,教你用Python控制Excel实现自动化办公
  11. AcWing 285. 没有上司的舞会(树形DP)
  12. dnfdpl服务器维护了,2019DNF心悦DPL赛事活动地址 强化器和时空石没了
  13. java png生成webp图片_PNG转WEBP格式的动态图
  14. iso27001认证怎么申请?(iso27001认证基本条件和详细流程)
  15. 从《目标》、《凤凰项目》到《持续交付》:DevOps 的过去、现在及未来
  16. 深度——强化学习、深度森林
  17. Ubuntu下GPAC(MP4Box)的安装 | 基于MP4Box搭建DASH视频系统
  18. 【转】PHP缓存的实现
  19. EZchip花1.3亿美元买Tilera然后以8亿美元把自己与Tilera一起卖掉
  20. 天下武功唯快不破 实验吧(小结)

热门文章

  1. 如何通过通达信接口获取最近的分钟级别行情数据?
  2. Vue中使用Datav 完成大屏基本布局
  3. 技术+服务:警翼智能欲筑高“护城河”
  4. 杭州记忆 | 科达为G20做的三件事
  5. Arduino开发实例-多机CAN-Bus通信(基于MCP2515)
  6. Linux gunzip 命令实例讲解
  7. Android 可拖动、点击按钮
  8. Http强缓存和协商缓存
  9. 【深度学习】深度学习中的双线性变换?
  10. 通达信量化交易接口怎么破解?