微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Vue CKEditor5 Build Uncaught TypeError:必须使用“new”调用类构造函数

如何解决Vue CKEditor5 Build Uncaught TypeError:必须使用“new”调用类构造函数

我想使用 CKEditor 的“自定义”构建:

import Vue from 'vue'
import Demo from './Demo/Demo.vue'
import { BootstrapVue,IconsPlugin } from 'bootstrap-vue'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import VueConfirmDialog from 'vue-confirm-dialog'
import CKEditor from "@ckeditor/ckeditor5-build-decoupled-document";

Vue.config.productionTip = false;
Vue.use(BootstrapVue);
Vue.use(IconsPlugin);
Vue.use(VueConfirmDialog);
Vue.component('vue-confirm-dialog',VueConfirmDialog.default);
Vue.use(CKEditor);

new Vue({
  render: h => h(Demo),}).$mount('#app')

然后我有错误

未捕获的类型错误:必须使用“new”调用类构造函数

当我使用@ckeditor/ckeditor5-vue2 组件时,我没有问题......我的错误在哪里?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。