At this https://ckeditor.com/docs/ckeditor5/latest/installation/plugins/installing-plugins.html#requirements page I read :
When installing CKEditor 5 Framework packages, you need to make sure their versions match the version of the base editor package. For example: if you would like to install the @ckeditor/ckeditor5-alignment package and your other packages are outdated, e.g. at version 38.0.0, you should consider updating your editor and all other packages to the latest 39.0.0 version. You might also install the alignment package at version 38.0.0 (which is not advised, actually). Otherwise, if package versions are different, this will result in an ckeditor-duplicated-modules error.
The simplest way to avoid such situations is to always use the latest 39.0.0 versions of the official packages. If you already stumbled upon this error, you can use npm-check-updates, which is a handy tool for keeping your packages up to date.
In package.json I have :
"devDependencies": {
"@visao/ckeditor5-video": "^28.0.1",
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^38.0.1",
Looks like as https://github.com/Technologie-Visao/ckeditor5-video has 2 years of last - so update there is no way to install it under ckeditor/ckeditor5-build-classic 38.0.1 ?
Totally removed package-lock.json and node_modules and run
npm install
and
npm run watch-poll
So I changed :
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^28.0.0",
Totally removed package-lock.json and node_modules and run
npm install
and
npm run watch-poll
But anyway I got errors :
app.js?id=d45135773663b89e3badb99a4913df66:14 Uncaught CKEditorError: ckeditor-duplicated-modules
Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-ckeditor-duplicated-modules
at Object.<anonymous> (app.js?id=d45135773663b89e3badb99a4913df66:14:8607)
at Object.<anonymous> (app.js?id=d45135773663b89e3badb99a4913df66:14:8681)
at i (app.js?id=d45135773663b89e3badb99a4913df66:14:3715)
at Module.<anonymous> (app.js?id=d45135773663b89e3badb99a4913df66:14:115934)
at i (app.js?id=d45135773663b89e3badb99a4913df66:14:3715)
at app.js?id=d45135773663b89e3badb99a4913df66:14:4514
at app.js?id=d45135773663b89e3badb99a4913df66:14:4525
at app.js?id=d45135773663b89e3badb99a4913df66:14:3574
at ./node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js (app.js?id=d45135773663b89e3badb99a4913df66:14:3580)
at __webpack_require__ (app.js?id=d45135773663b89e3badb99a4913df66:125260:42)
I opened composer.lock and check :
"": {
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^28.0.0",
...
},
"devDependencies": {
"@visao/ckeditor5-video": "^28.0.0",
...
}
...
"node_modules/@ckeditor/ckeditor5-build-classic": {
"version": "28.0.0",
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-classic/-/ckeditor5-build-classic-28.0.0.tgz",
"integrity": "sha512-VgOGAMC9/47HZTgA4vnzhYfNCYRYzukXuS873B0gQ9cenP13CnYzwa1y9H/Przo4r5sYUPsNsLCG1i5eM58JWg==",
"dependencies": {
"@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-easy-image": "^28.0.0",
"@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-typing": "^28.0.0"
},
"engines": {
"node": ">=12.0.0",
"npm": ">=5.7.1"
}
},
...
"node_modules/@visao/ckeditor5-video": {
"version": "28.0.1",
"resolved": "https://registry.npmjs.org/@visao/ckeditor5-video/-/ckeditor5-video-28.0.1.tgz",
"integrity": "sha512-1w2HyfirebuIq8Wqt9x4Hy2wMSaJC75YIlQCq5ZIJc0Z3WUCPxr9n+M9czs/oLmasa+bOWCzcZjzpZfPRyd6Vg==",
"dev": true,
"dependencies": {
"@ckeditor/ckeditor5-ui": "^28.0.0",
"ckeditor5": "^28.0.0"
},
"engines": {
"node": ">=12.0.0",
"npm": ">=5.7.1"
}
},
I expected that downgrading of version ckeditor5-build-classic till 28.0 will fix this error, but I failed...