ng2-ckeditor: Error: Unexpected value 'CKEditorModule' imported by the module 'AppModule'

I have a new project created with the angular cli. I have installed this package using npm install ng2-ckeditor and set up my system.config.js and app.module.ts files as per the example. I have run ng build and ng serve. The module is not loading, as I am getting the above error in my console?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (6 by maintainers)

Most upvoted comments

Yep I see this error too… webpack seems to bundle ng2-ckeditor correctly. I’m not very familiar with webpack but i’ll take a look

@InigoWD you don’t need the system-js config if you use angular cli > 1.0.0 beta.14. webpack manages everything for you. but obviously there is a bug in the latest cli version. you can wait for a new release of the cli and everything will work out of the box.

Or you can use a local copy of the cli master branch, there is this bug already fixed. Here is some information how you can install it: https://github.com/angular/angular-cli#development-hints-for-hacking-on-angular-cli