-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CKEditorError: ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated #6044
Comments
Hi! Your issue occurs because you're adding a plugin directly to the build, which isn't allowed. If you'd like to use the SimpleUploadAdapter plugin, you should create a new build which will include that plugin, then import it to you React integration. Please, see our Installing plugins guide. |
If that's the case, does this make the following from the docs incorrect? I've got pretty much the same usecase where I want to add a single plugin to the classic editor
https://ckeditor.com/docs/ckeditor5/latest/features/font.html |
Hi @kyle-ssg! The mentioned snippet is valid. Please, take a look at the guide I've mentioned above - it explains how to install plugins in CKEditor 5. |
Same here:
results in: |
I'm running into the same error. For me it looks like ckeditor5 did define something as a @Mgsy I really would recommend that the modules which can not exist multiple times are added as peer dependency, to the plugins and the other dependencies, else this error will happen also when not using a build version of ckeditor which is the case in our place. |
To all struggling with the duplicated modules error - we've merged DLLs, the solution that allows a developer to add plugins along with the build, without any issues. It's ready to use, however, the guide is not published yet (but it's available on the latest |
@Mgsy thank you for the response. Do you recommend to use now the build version of the classic editor? We are currently building it like in the docs: https://github.com/sulu/sulu/blob/08e3c20938208fdcf76bd59ae4fce9615a2859bb/src/Sulu/Bundle/AdminBundle/Resources/js/containers/CKEditor5/CKEditor5.js#L158-L182 and edited our webpack build to add the lark theme and the other stuff: https://github.com/sulu/sulu/blob/08e3c20938208fdcf76bd59ae4fce9615a2859bb/webpack.config.js#L91. As the one which installs the dependencies is not a direct parent (see package.json) npm will when they try to add a plugin this way errors with the ckeditor-duplicated-modules, because how npm installs the dependencies. I tried the latest 26 version there is the same error but did use the source version of the classic editor should I switch to the build version to avoid this? |
I found my issue here. It was because of different versions of different plugins. |
still having this issue and I don't know how to fix!!! |
Oh I fixed it. |
Hi! I was trying to start my project with ckeditor, but I get an error -
×
My code:
I was trying to delete package-lock.json and rm -rf node_modules and npm i, but it doesn't help me. What should I do to fix the error?
The text was updated successfully, but these errors were encountered: