Closed EternalPirate closed 3 years ago
Same issue, I upgrade all dependencies which name begins with @ckeditor/
, keep their versions same with node_modules/@ckeditor/ckeditor-build-classic
, and it works now.
ckeditor5-video/package.json
"dependencies": {
"@ckeditor/ckeditor5-clipboard": "^25.0.0",
"@ckeditor/ckeditor5-core": "^25.0.0",
"@ckeditor/ckeditor5-engine": "^25.0.0",
"@ckeditor/ckeditor5-ui": "^25.0.0",
"@ckeditor/ckeditor5-upload": "^25.0.0",
"@ckeditor/ckeditor5-utils": "^25.0.0",
"@ckeditor/ckeditor5-widget": "^25.0.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^25.0.0",
"@ckeditor/ckeditor5-dev-utils": "^24.0.2",
"@ckeditor/ckeditor5-editor-classic": "^25.0.0",
"@ckeditor/ckeditor5-enter": "^25.0.0",
"@ckeditor/ckeditor5-essentials": "^25.0.0",
"@ckeditor/ckeditor5-heading": "^25.0.0",
"@ckeditor/ckeditor5-inspector": "^2.2.2",
"@ckeditor/ckeditor5-list": "^25.0.0",
"@ckeditor/ckeditor5-paragraph": "^25.0.0",
"@ckeditor/ckeditor5-theme-lark": "^25.0.0",
"@ckeditor/ckeditor5-undo": "^25.0.0",
"postcss-loader": "^3.0.0",
"raw-loader": "^4.0.2",
"style-loader": "^1.3.0",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12"
},
Solution?
A bit like Husky did here, the dependencies of your build need to fit the ones in this plugin. It's a bit of a pain with CKEditor as a whole. They might have fixed it though, I am not sure as I don't really keep up with their development.
That said, I just made a release that will work with 27.1.0. I will try to keep things more up to date, but I have been kinda busy in the past few months. Sorry if it caused any of you some pains.
hi, I had a similar problem
keep their versions CKEditor same with node_modules/@visao/ckeditor5-video/pakage.json
and npm i
"@ckeditor/ckeditor5-adapter-ckfinder": "^28.0.0",
"@ckeditor/ckeditor5-autoformat": "^28.0.0",
"@ckeditor/ckeditor5-basic-styles": "^28.0.0",
"@ckeditor/ckeditor5-block-quote": "^28.0.0",
"@ckeditor/ckeditor5-ckfinder": "^28.0.0",
"@ckeditor/ckeditor5-cloud-services": "^28.0.0",
"@ckeditor/ckeditor5-dev-utils": "^25.0.0",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^25.4.5",
"@ckeditor/ckeditor5-editor-classic": "^28.0.0",
"@ckeditor/ckeditor5-essentials": "^28.0.0",
"@ckeditor/ckeditor5-heading": "^28.0.0",
"@ckeditor/ckeditor5-image": "^28.0.0",
"@ckeditor/ckeditor5-indent": "^28.0.0",
"@ckeditor/ckeditor5-link": "^28.0.0",
"@ckeditor/ckeditor5-list": "^28.0.0",
"@ckeditor/ckeditor5-media-embed": "^28.0.0",
"@ckeditor/ckeditor5-paragraph": "^28.0.0",
"@ckeditor/ckeditor5-paste-from-office": "^28.0.0",
"@ckeditor/ckeditor5-table": "^28.0.0",
"@ckeditor/ckeditor5-theme-lark": "^28.0.0",
"@ckeditor/ckeditor5-typing": "^28.0.0",
@gombeh you save me Thanks :)
am I importing them in the wrong way?
because the issue is definitely here.
I've tried to create a custom build exactly like in the doc https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/installing-plugins.html and + this video plugin
and because of this plugin, my app is crashed with "CKEditorError: ckeditor-duplicated-modules" error, when I remove the video plugin everything works fine.
here my changes to the default build