CKEditorError: ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated

Mr. Chhatrola picture Mr. Chhatrola · Mar 13, 2020 · Viewed 12.3k times · Source
import CKEditor from '@ckeditor/ckeditor5-react';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter';

enter image description here Getting ckeditor 5 duplicate modules error. Anyone can help me. Thanks in Advance.

Answer

Aime Aine picture Aime Aine · Mar 25, 2020

It's because you are importing the plugin with the build ! In order to add plugins, you have to make a personnal build. Please read this page to know more about it : ckeditor offical documentation. They even have an official online builder that does all the work for you ! : ckeditor online builder Once you created it, you have to import the editor just as you have done before on line 2 but instead of writing from "@ckeditor/ckeditor5-build-classic" you have to write from "adress of the build folder of your personnal build".

I hope it helped you.