ng2-ckeditor: Angular Universal (SSR) and Ckeditor 4 error

Hi, I used angular universal for server-side rendering and ng2-ckeditor. when I want to be compress and webpack ng2-ckeditor the belove error show:

CKEditor 4.x is missing (http://ckeditor.com/)

how can I resolve this problem? I must be used ng2-ckeditor !!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 17

Most upvoted comments

It is working fine when the package has been built, the problem comes when it has not been build yet. For development purposes, I don’t want to manually build the child module every time I have made a change. So I added the following to the main module as dependency to the package.json: "ng2-ckeditor": "file:../ng2-ckeditor". This however is giving me the following error:

ERROR in ../ng2-ckeditor/ng2-ckeditor.ts Module build failed: Error: /Users/xxx/Documents/projects/personal/ng2-ckeditor/ng2-ckeditor.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

Which I’m able to solve by adding the ng2-ckeditor file to the include property in the tsconfig, but then I get this error on serve / build: ERROR in No NgModule metadata found for 'AppModule'.

Any pointers would be appreciated, this is the first time I try to contribute to a project that doesn’t work stand alone. So maybe I’m missing something obvious here.