gpt4 book ai didi

javascript - 错误 : ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated

转载 作者:行者123 更新时间:2023-12-04 12:02:55 35 4
gpt4 key购买 nike

我有一个带有 Vuejs 和 Laravel 的 Web 应用程序
我想使用 CKEditor 5

我安装了依赖项

npm install --save @ckeditor/ckeditor5-vue @ckeditor/ckeditor5-build-classic

就像文档中提到的那样
here

在我的组件中:
<script>
import draggable from 'vuedraggable'
import CKEditor from '@ckeditor/ckeditor5-vue'
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'

export default {
components: {
draggable,
ckeditor: CKEditor.component
},
data() {
return {

editor: ClassicEditor,
editorConfig: {

}
}
},

我有这个错误信息:
Error: ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated

我已经尝试过这些建议:
rm -rf node_modules && npm install 

或删除 package-lock.json

在文档 here

但我总是有同样的错误信息

有人有想法吗?

谢谢

最佳答案

就我而言,我不小心需要错误版本的 CKEditor 插件。
我有这个:

"@ckeditor/ckeditor5-alignment": "^28.0.0",  // This was the plugin I tried to install
"@ckeditor/ckeditor5-autoformat": "^27.1.0",
"@ckeditor/ckeditor5-basic-styles": "^27.1.0",
"@ckeditor/ckeditor5-block-quote": "^27.1.0",
"@ckeditor/ckeditor5-ckfinder": "^27.1.0",
当我更改 28.0 时,问题就消失了至 27.1

关于javascript - 错误 : ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59910707/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com