Cannot find name 'object' in angular 2 cli ckeditor

67 views
Skip to first unread message

Deepak Kumar

unread,
May 19, 2017, 11:28:46 PM5/19/17
to nodejs

Hi,
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
<ckeditor [formControl]="description" [config]="config" >

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'."

Reply all
Reply to author
Forward
0 new messages