ckeditor5-angular icon indicating copy to clipboard operation
ckeditor5-angular copied to clipboard

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

Open Dovernh opened this issue 2 years ago • 5 comments

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

  • ckeditor5-custom-build
  • projects
  •  abc-editor
    
  •      lib
    
  •         abc-editor
    
  •             component
    
  •                 abc-component.ts
    
  •                 abc-component.html
    
  •  showcase
    
  •      src
    
  •          app
    
  •              editor
    
  •                  editor.component.ts
    
  •                  editor.component,html
    

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

Dovernh avatar Nov 25 '23 15:11 Dovernh

@mremiszewski do you have some thoughts here?

Witoso avatar Nov 27 '23 08:11 Witoso

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.

Dovernh avatar Nov 27 '23 12:11 Dovernh

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

Witoso avatar Nov 28 '23 08:11 Witoso

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

Dovernh avatar Nov 29 '23 14:11 Dovernh

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.

Witoso avatar Dec 04 '23 09:12 Witoso