当前位置:网站首页>Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)

Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)

2022-06-25 06:42:00 -Geng Rui-

You may not believe it This question is really yours vue The version is too high
It is not recommended that you reduce vue edition
You can easily introduce element-plus

npm install element-plus --save

then main.js Refer to the code

import {
    createApp} from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

createApp(App).use(ElementPlus).mount('#app')

And then in App.vue Write a element ui Component try

<template>
  <div id = "app">
      <el-button icon="el-icon-plus" size="small"> I am a element-plus Button </el-button>
  </div>
</template>

<script> export default {
       name: 'App', } </script>

<style> </style>

 Insert picture description here
The effect is also very good

原网站

版权声明
本文为[-Geng Rui-]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206250425260677.html