types.js?a742:39 Uncaught TypeError: Cannot read property ‘prototype‘ of undefined at eval (type

vue安装Element第三方组件库浏览器界面报错:

types.js?a742:39 Uncaught TypeError: Cannot read property 'prototype' of undefined
    at eval (types.js?a742:39)
    at Object../node_modules/element-ui/lib/utils/types.js (chunk-vendors.js:3189)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at eval (util.js?8122:19)
    at Object../node_modules/element-ui/lib/utils/util.js (chunk-vendors.js:3201)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at eval (format.js?9d7e:49)
    at Object../node_modules/element-ui/lib/locale/format.js (chunk-vendors.js:2792)

官方的界面显示:

Element,一套为开发者、设计师和产品经理准备的基于 Vue 2.0 的桌面端组件库

Element Plus,一套为开发者、设计师和产品经理准备的基于 Vue 3.0 的桌面端组件库

因此改为:npm install element-plus --save即可

element-plus官方

你可能感兴趣的:(vue,vue)