当前位置:网站首页>[error reporting]: cannot read properties of undefined (reading 'prototype')
[error reporting]: cannot read properties of undefined (reading 'prototype')
2022-07-27 04:58:00 【Blog Zhu hukang】
List of articles
Report the wrong question
vue3.x Create project quote elementUI Console error As shown in the figure below :

Error reporting analysis
element The official website said :
Instance object is inconsistent , The instance object on the official website is vue/3.0(vue2.x) Version created object , And the project I created is using vue3.x Created , The example object is createdApp Instance object is inconsistent , Of course, it can't lead in , Then he reported an error
Error reporting solution
vue2.x
When creating a project, choose vue2.x Create project , Other operations as usual .( element It's supporting vue2.x Of ,vue3.x Not for the time being ElementUI
vue3.x
Use vue3.x edition introduce ElementUI
If you want to use vue3.x introduce element It's not impossible , His support vue3.0 My version is called element-plus Click here to enter
install :
npm install element-plus --save
Use : stay main.js Write the following
import {
createApp } from 'vue'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import App from './App.vue';
const app = createApp(App)
app.use(ElementPlus)
app.mount('#app')
边栏推荐
猜你喜欢

单元测试chapter6

【报错】:Cannot read properties of undefined (reading ‘prototype‘)

Find a specific number in an ordered array

JS day 2 (variables, variable usage, naming rules, syntax extensions)

Safety fourth after class exercise

How to do smooth data migration: Double write scheme

Final Cut Pro中文教程 (2) 素材窗口的认识

Photoshop裁剪工具隐藏技巧

二叉搜索树详讲

JS tips
随机推荐
【HCIP】重发布、重分布、重分发实验
Idea 如何新建一个groovy的项目(图文详细解释)
不需手动安装cuda和cudnn,通过一行程序即可安装tensorflow-gpu,以tensorflow-gpu2.0.0,cuda10.0,cudnn7.6.5为例
Solution to the third game of 2022 Hangzhou Electric Multi school league
自定义视口高度,多余的部分使用滚动
UUID and indexing rules
How does novice Xiaobai learn to be we media?
冒泡排序(详细)
The digital China Construction Summit ended with a list of massive pictures on site!
Structural mode - decorator mode
Pinia uses plug-ins for persistent storage.
消防安全培训资料汇总
「Photoshop2021入门教程」调整图片到不同的长宽比
【C语言】自定义类型详解(结构体+枚举+联合)
JS tips
Visualization domain svg
CEPH operation
【搜索】DFS之连通性模型 + 搜索顺序
如何重置Photoshop首选项?ps重置首选项的方法
[C language] detailed explanation of user-defined types (structure + enumeration + Union)