ckeditor / ckeditor5-angular

Official CKEditor 5 Angular 5+ component.
https://ckeditor.com/ckeditor-5
Other
202 stars 110 forks source link

Ckeditor 5 custom build in angular 16 library (ng-packagr) #399

Open Dovernh opened 9 months ago

Dovernh commented 9 months ago

I have created an angular 16 library with a custom ckeditor5 build.

If I run the showcase the editor works, no issues If I try and build the abc-editor it fails

✔ Compiling with Angular sources in Ivy partial compilation mode. ✖ Generating FESM bundles Could not load C:\appdev\otised\ABC.Editor\ckeditor5-custom-build\build\ckeditor.js (imported by dist/abc-editor/esm2022/lib/abc-editor/component/abc-editor.component.mjs): Could not load 'C:\appdev\otised\OtisEd.Editor\ckeditor5-custom-build\build\ckeditor.js' from memory. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this com

Witoso commented 9 months ago

@mremiszewski do you have some thoughts here?

Dovernh commented 9 months ago

mremiszewski if i add ckeditor as a component in app, everything is good. if ckeditor is run from the showcase (above), everything is good. if it is not a custom ckeditor build in a library, everything is good i have other components that follow the same structure as above, they work w/o issue

i think something is not correct between the custom build of ckeditor.js and ng-packagr. I found something w/ same error, but not specific to ckeditor: https://github.com/ng-packagr/ng-packagr/issues/2666.

Witoso commented 9 months ago

I'm afraid it will be extremely hard for us to debug what happens in some third-party packaging solution :(

Dovernh commented 9 months ago

What do u mean by third party packaging solutions? ng-packagr or a custom ckeditor build or my library? I do not mean to be argumentative, just looking for my next steps to resolve this issue

Witoso commented 9 months ago

Sorry! I meant ng-packagr is not an official Angular library, but I checked it again, and it's recommended in the Angular docs.

I am uncertain whether we will be able to troubleshoot it as we currently lack the time or a deeper understanding of the Angular domain. Maybe someone in the community will come to help.