Cannot find type definition file for 'ckeditor'. & Cannot find namespace 'CKEDITOR'.
See original GitHub issueI started getting those errors after updating from 1.3.1 to 1.3.2 Of course everything was working in 1.3.1
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:1:23 - error TS2688: Cannot find type definition file for 'ckeditor'.
1 /// <reference types="ckeditor" />
~~~~~~~~
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:13:13 - error TS2503: Cannot find namespace 'CKEDITOR'.
13 config: CKEDITOR.config;
~~~~~~~~
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:16:26 - error TS2503: Cannot find namespace 'CKEDITOR'.
16 change: EventEmitter<CKEDITOR.eventInfo>;
~~~~~~~~
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:17:32 - error TS2503: Cannot find namespace 'CKEDITOR'.
17 editorChange: EventEmitter<CKEDITOR.eventInfo>;
~~~~~~~~
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:18:25 - error TS2503: Cannot find namespace 'CKEDITOR'.
18 ready: EventEmitter<CKEDITOR.eventInfo>;
~~~~~~~~
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:19:24 - error TS2503: Cannot find namespace 'CKEDITOR'.
19 blur: EventEmitter<CKEDITOR.eventInfo>;
~~~~~~~~
Error: node_modules/ng2-ckeditor/ckeditor.component.d.ts:20:25 - error TS2503: Cannot find namespace 'CKEDITOR'.
20 focus: EventEmitter<CKEDITOR.eventInfo>;
~~~~~~~~
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6
Top Results From Across the Web
1 Answer - 1 - Stack Overflow
d.TS: 1:23 - error TS2688: Cannot find type definition file for 'ckeditor'.) what is the reason for this error msg ?
Read more >Angular component - CKEditor 5 Documentation
Learn how to install, integrate and configure CKEditor 5 Builds and how to work with CKEditor 5 Framework, customize it, create your own...
Read more >ng2-ckeditor - npm
Start using ng2-ckeditor in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type declarations.
Read more >error TS2688: Cannot find type definition file for 'angular'
I figured out what the problem was. I did not have typings installed. I ran this: npm i -g typings. to install typings...
Read more >ng2-ckeditor - npm Package Health Analysis - Snyk
The npm package ng2-ckeditor was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The error occures because ng2-ckeditor component reference
@types/ckeditor
package which need to be installed in your own project. Unfortunatelly the peerDependencies where not updated in release 1.3.2. Add the@types/ckeditor
to your dependencies and your project will compile without errors. From now you can use intellisense for ckeditor in your own project components and reference ckeditor not as any but as CKEditorComponent. Have fun!Please see the installation instruction: https://github.com/chymz/ng2-ckeditor#installation