Tuesday 16 May 2017

How to fix error Cannot find name 'object' in angular 2 cli ckeditor

I have insalled ng2-ckeditor using cli :

npm install ng2-ckeditor --save

Then Include CKEditor javascript files in my index file :

<script src="https://cdn.ckeditor.com/4.5.11/full/ckeditor.js"></script>

Then imported module in module file:

import { CKEditorModule } from 'ng2-ckeditor';

in imports "CKEditorModule"

and trying to use in html

It show error:

ERROR in /var/www/html/eventswebsite/frontendapp/node_modules/ng2-ckeditor/lib/ckeditor.component.d.ts (43,26): Cannot find name 'object'.

"ng2-ckeditor/lib/ckeditor.component.d.ts (43,26): Cannot find name 'object'."



via Deepak Kumar

No comments:

Post a Comment