Uncaught TypeError: Cannot read property ‘prototype‘ of undefined at eval (dom.js?5924:19

在尝试安装并使用Element-UI库时,遇到一个错误:`Uncaught TypeError: Cannot read property 'prototype' of undefined`。该错误出现在`dom.js`文件的第19行。问题可能与Vue版本不兼容或Element-UI的依赖冲突有关。已经尝试将CLI版本更改为3.x和调整main.js的语法,但问题仍未解决。尽管如此,Vue 2.0的安装和运行未出现任何问题。
摘要由CSDN通过智能技术生成

问题描述: 想试试安装 element-ui 有没有完成
在这里插入图片描述
结果出现报错信息如下:
在这里插入图片描述

dom.js?5924:19 Uncaught TypeError: Cannot read property ‘prototype’ of undefined
at eval (dom.js?5924:19)
at Object…/node_modules/element-ui/lib/utils/dom.js (chunk-vendors.js:2617)
at webpack_require (app.js:849)
at fn (app.js:151)
at eval (popup-manager.js?4b26:9)
at Object…/node_modules/element-ui/lib/utils/popup/popup-manager.js (chunk-vendors.js:2665)
at webpack_require (app.js:849)
at fn (app.js:151)
at eval (index.js?5128:14)
at Object…/node_modules/element-ui/lib/utils/popup/index.js (chunk-vendors.js:2653)
eval @ dom.js?5924:19
./node_modules/element-ui/lib/utils/dom.js @ chunk-vendors.js:2617
webpack_require @ app.js:849
fn @ app.js:151
eval @ popup-manager.js?4b26:9
./node_modules/element-ui/lib/utils/popup/popup-manager.js @ chunk-vendors.js:2665
webpack_require @ app.js:849
fn @ app.js:151
eval @ index.js?5128:14
./node_modules/element-ui/lib/utils/popup/index.js @ chunk-vendors.js:2653
webpack_require @ app.js:849
fn @ app.js:151
eval @ vue-popper.js?e974:9
./node_modules/element-ui/lib/utils/vue-popper.js @ chunk-vendors.js:2761
webpack_require @ app.js:849
fn @ app.js:151
5 @ select.js?4e4b:523
webpack_require @ select.js?4e4b:21
61 @ select.js?4e4b:1053
webpack_require @ select.js?4e4b:21
eval @ select.js?4e4b:85
eval @ select.js?4e4b:88
./node_modules/element-ui/lib/select.js @ chunk-vendors.js:2466
webpack_require @ app.js:849
fn @ app.js:151
eval @ element-ui.common.js?5c96:308
webpack_require @ elem

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值