ckeditor-duplicated-modules on Angular integration following docs
📝 Provide detailed reproduction steps (if any)
- … npm install "@ckeditor/ckeditor5-angular": "8.0.0" and "ckeditor5": "42.0.2"
- … Follow angular integration documentation from here
- … Troubleshoot using minimal imports, simply import { ClassicEditor } from "ckeditor5"; and public ckeditor = ClassicEditor;
✔️ Expected result
CKEditor loads and operates correctly
❌ Actual result
CKEditorError: ckeditor-duplicated-modules Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-ckeditor-duplicated-modules at 4248 (index.js:1107:12) at webpack_require (bootstrap:19:1) at 16289 (index.js:559:19) at webpack_require (bootstrap:19:1) at 84534 (index.js:5813:2) at webpack_require (bootstrap:19:1) at 54919 (ckeditor5.js:59:1) at webpack_require (bootstrap:19:1) at 5795 (index.js:5813:2) at webpack_require (bootstrap:19:1)
❓ Possible solution
Both packages are latest releases, and I'm able to repro without "@ckeditor/ckeditor5-angular" at all, simply importing anything from "ckeditor5"; I have also tried clearing npm cache and reinstalling hte packages.
📃 Other details
- Browser: Chrome 126.0.6478.127
- OS: Windows 10
- First affected CKEditor version: 42.0.2
- Installed CKEditor plugins: none
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
Hi! Please provide some reproducible sample, we cannot reproduce this issue: https://stackblitz.com/edit/phq8c8?file=src%2Fapp%2Fapp.component.ts,src%2Fmain.ts
The issue lacks the feedback we asked for two weeks. Hence, we've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
Thank you, I unfortunately was assigned different tasks this last week, but I'm back on evaluating CKEditor. I am still attempting to build a base case that reproduces. Our ng project was originally an old angular release and has been upgraded to ng 14 to support the same ts version ckeditor uses. We have some base modules that I have added the ckeditor module to as an import and export.
Unable to get a reproduction on a simple base ng 14, but have a repro in our production project without even using the ng module component. Simply installing "ckeditor5": "42.0.2", then in a component simply have
import { ClassicEditor } from "ckeditor5"; ... public Editor = ClassicEditor;
Nothing else, and this throws the error on app initialization
Updating to ckeditor5 43 seems to have bypassed this issue.