-
Notifications
You must be signed in to change notification settings - Fork 111
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
caught CKEditorError: ckeditor-duplicated-modules #368
Comments
Hey, thanks for reaching out! Could you share information about the directory structure, which editor build type you use, how do you install it, and how the editors are loaded? That could help us pinpoint the problem. |
Hi, Thanks. |
As you can see in the error description, this problem appears when some of its [editor's] modules were duplicated (evaluated and executed twice). Module duplication leads to inevitable runtime errors. Are the editors that you are using split and separate js files? |
both editors are different in both the sites(localhost:4301 and localhost:4310), if we didn't add the editor module we are getting build errors. while running the single spa application(localhost:4200) with the above two applications((localhost:4301 and localhost:4310) we are getting duplicate modules error. how do we fix this? since both applications are independent on each other we need to install the CKEditor modules separately in each application to fix the build issues, but while running the combined angular single spa application with those two applications, only one application which loads first is working the second application not working getting the above error. |
And that's the problem I think. Maybe the SPA is bundling editors together (building them), and modules are duplicated . As I can see the editors have different versions of packages. Try to have a separate build process with webpack for both editors. You could place them in the vendor directory, separate folders |
I am running two applications with localhost:4301 and localhost:4310 inside a angular single spa application with ckeditors. If I run the two applications individually the ckeditor is working fine, we are not getting any error. but if we run both applications at a time we are getting CKEditorError: ckeditor-duplicated-modules error. can anyone please check once. Ideally those are two different websites with different modules and builds. but if run both at a time ckeditor is throwing duplicate module error.
The text was updated successfully, but these errors were encountered: