question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find type definition file for 'ckeditor'. & Cannot find namespace 'CKEDITOR'.

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

2reactions
kzimnycommented, Feb 8, 2021

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! image

1reaction
kzimnycommented, May 3, 2021

Please see the installation instruction: https://github.com/chymz/ng2-ckeditor#installation

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found