Vue最新报错Cannot read properties of null (reading 'nextSibling')

在最新构建Vue项目时导入element就报错,通过使用旧代码解决

main.js

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

替换为

new Vue({
    el:'#app'
})

即可运行,同时要导入Vue import Vue from 'vue'

posted @ 2022-06-13 09:24  cccht  阅读(7259)  评论(1编辑  收藏  举报