问题之vue3.0引入elementui报错Uncaught TypeError: Cannot read property ‘prototype‘ of undefined

vue3.0引入elementui报错Uncaught TypeError: Cannot read property ‘prototype‘ of undefined

elementUI针对的是vue2.0
https://element.eleme.io/#/zh-CN

Element Plus针对的是vue3.0
https://element-plus.org/zh-CN/guide/installation.html

当vue3.0使用elementUI时会报Uncaught TypeError: Cannot read property ‘prototype‘ of undefined错误

解决方法:

版本一致即可

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当在前端开发中遇到 TypeError: Cannot read property 'prototype' of undefined 误时,这通常是由于某个对象未正确定义或被引用导致的。 根据引用[1]中提供的信息,出现这个误的可能原因是代码中存在一些配置误或语法问题。可能需要检查代码中是否有拼写误或变量未正确声明等问题。此外,还可以通过查看浏览器的开发者工具(F12控制台)中的详细误信息来确定具体的出位置。 引用提供了一个关于使用Vue打包时出现类似误的解决办法的文档。你可以根据其中的指导,检查你的打包配置是否正确,是否引入了必要的插件或库。 引用给出了在Vue3中正确引入ElementUI的方式。你可以参考这个引用中提供的代码示例,确认你的引入方式是否正确,并且检查是否已正确引入了相关的CSS文件。 综上所述,当出现前端TypeError: Cannot read property 'prototype' of undefined 误时,你可以通过检查代码配置、语法问题以及引入方式来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Vue3引入element-uiUncaught TypeError: Cannot read propertyprototype‘ of undefined](https://blog.csdn.net/zhaojiaxing123/article/details/129520076)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [Vue打包Cannot read property 'tapPromise' of undefined处理.docx](https://download.csdn.net/download/rongbo91/77070400)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值