Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error - Cannot find module 'ckeditor5/src/utils' or its corresponding type declarations. #14822

Closed
lokopinagar opened this issue Aug 19, 2023 · 7 comments
Labels
package:watchdog pending:feedback This issue is blocked by necessary feedback. resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.

Comments

@lokopinagar
Copy link

On using command "npm install --save @ckeditor/ckeditor5-angular" i am getting error
Cannot find module 'ckeditor5/src/utils' or its corresponding type declarations in the package

on line import type { CKEditorError } from 'ckeditor5/src/utils'; in watchdog.d.ts file in folder node_modules@ckeditor\ckeditor5-watchdog\src

Thank you

@lokopinagar lokopinagar added the type:bug This issue reports a buggy (incorrect) behavior. label Aug 19, 2023
@Witoso
Copy link
Member

Witoso commented Aug 21, 2023

Angular package has a set of peerDependencies (in package.json), I think that installing a watchdog package and others may solve this issue. Let me know if it helped.

@Witoso Witoso added the pending:feedback This issue is blocked by necessary feedback. label Aug 21, 2023
@Witoso
Copy link
Member

Witoso commented Aug 21, 2023

npm v7+ installs peer dependencies by default, so I wonder if this could be an issue. Check your npm version if you can.

@lokopinagar
Copy link
Author

I ran this command with --legacy-peer-deps
npm install --save @ckeditor/ckeditor5-core @ckeditor/ckeditor5-engine @ckeditor/ckeditor5-utils @ckeditor/ckeditor5-watchdog
I double checked the peerDependency i have all of them installed but still error remains.

I changed the Line from --> ckeditor5/src/utils
to -->@ckeditor/ckeditor5-utils
in package the error was gone but i do not want to make change in the package file (editorwatchdog.d.ts).

I am using npm 9+

please let me know what i am doing wrong?

Thank you

@Witoso
Copy link
Member

Witoso commented Aug 21, 2023

Please try installing npm install --save ckeditor5. I'm not sure why it's missing on your side, do you have any other editor's packages?

The problem should be solved in #13852, in which we will clean up the Watchdog dependencies.

@lokopinagar
Copy link
Author

Thank you it solved the problem

I was following this page and yes i have installed some other text editor which i am planning to unistall

@Witoso
Copy link
Member

Witoso commented Aug 21, 2023

Great, I meant other CKEditor 5 packages, it's possible that with a build or plugins installed you wouldn't see this problem. But we need to fix this on some other level. JFYI @pomek.

@Witoso Witoso closed this as completed Aug 21, 2023
@Witoso Witoso added package:watchdog resolution:resolved This issue was already resolved (e.g. by another ticket). labels Aug 21, 2023
@murithicollins
Copy link

i am trying to run ckeditor5 in svelte and i am encountering this error "Error: Cannot find module '@wiris/mathtype-ckeditor5/dist/wirisplugin.css' imported from '/home/locco/Documents/demos/math5/src/lib/components/ckeditor.svelte"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:watchdog pending:feedback This issue is blocked by necessary feedback. resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

3 participants