引用elementUI时出现Uncaught TypeError: Cannot read property ‘prototype‘ of undefined

浏览器控制台报错:
在这里插入图片描述
原因:引入js的顺序不对
在这里插入图片描述
解决方案:vue文件优先于elementui文件

在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用中提到的错误信息,"Uncaught TypeError: Cannot read properties of undefined (reading 'abort')",这个错误通常是在访问undefined对象的属性发生的。根据引用中的分析,问题可能出现在自定义的tabbar中,可能是因为route对象未定义导致的。可以通过检查使用useSwitchTab方法的调用,确认是否正确传递了route对象。如果确保传递了正确的route对象,但仍然遇到这个错误,那么可能需要进一步检查tabbar组件的实现,以确定是否有其他地方导致了route对象未定义的问题。 另外,根据引用中的提到,当引入element,除了使用命令安装之外,还需要修改main.js文件。可以尝试按照引用中的修改内容进行操作,以确保正确引入element库。 综上所述,解决"Uncaught TypeError: Cannot read properties of undefined (reading 'abort')"错误的步骤如下: 1. 检查使用useSwitchTab方法的调用,确认是否正确传递了route对象。 2. 检查tabbar组件的实现,确定是否有其他地方导致route对象未定义的问题。 3. 根据引用中的修改内容,修改main.js文件,确保正确引入element库。 4. 重新运行代码,检查是否还存在错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [ASP.NET MVC运行出现Uncaught TypeError: Cannot set property __MVC_FormValidation of null的解决方法](https://download.csdn.net/download/weixin_38731761/13069683)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Uncaught TypeError: Cannot read properties of undefined (reading ‘meta‘)](https://blog.csdn.net/weixin_41414957/article/details/125501642)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [vue Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘) 报错](https://blog.csdn.net/qq_45281478/article/details/126585159)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值