Ashish
Ashish

Reputation: 25

ERROR in ../node_modules/ng2-ckeditor/ckbutton. directive.d.TS: 1:23 - error TS2688: Cannot find type definition file for 'ckeditor'

In the Angular project, I got this error msg ( ERROR in ../node_modules/ng2-ckeditor/ckbutton. directive.d.TS: 1:23 - error TS2688: Cannot find type definition file for 'ckeditor'.) what is the reason for this error msg ?

Upvotes: 2

Views: 2591

Answers (2)

Ousama
Ousama

Reputation: 2810

I fixed this issue by removing ^ from dependency version. I replaced ^1.2.9 with 1.2.9.

enter image description here

Note: I'm using Angular version 10.0.2

Upvotes: 1

Drashti Dobariya
Drashti Dobariya

Reputation: 3006

The reason for this is that you have not installed @types/ckeditor package in your project.

Installing this package should resolve this error. If it still persists, then let me know.

Upvotes: 3

Related Questions