引入element-ui报错

![在这里插入图片描述](https://img-blog.csdnimg.cn/20210601103624251.pn

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:2736)     at __webpack_require__ (app.js:849)     at fn (app.js:151)     at eval (util.js?8122:19)     at Object../node_modules/element-ui/lib/utils/util.js (chunk-vendors.js:2748)     at __webpack_require__ (app.js:849)     at fn (app.js:151)     at eval (format.js?9d7e:49)     at Object../node_modules/element-ui/lib/locale/format.js (chunk-vendors.js:2339)

在这里插入图片描述
在这里插入图片描述

目前element-ui只支持2.6以下的版本,Vue3.0要使用element-ui就要使用element-plus

vue4-cli生成项目文件、引入element-ui

安装node
npm install -g @vue/cli安装vue-cli脚手架
vue -V查看vue-cli版本,@vue/cli 4.5.11
创建项目vue create demo,demo是项目名称
npm i element-ui -S下载element-ui,注意如果是vue3.0使用npm i element-plus下载element-plus
全局导入ElementPlus
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

et -i 初始化变量文件报错

在这里插入图片描述
在这里插入图片描述

Logo

昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链

更多推荐