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 (将#修改为@)