Skip to content

Cannot Find Module Or It's Type Declaration. #139

@S0mt0

Description

@S0mt0

In my Vite + React + Typescript app, I've properly installed the @editorjs/embed tool, as well as other tools like the maker, code, and link tools. I have also looked into the node_modules and confirmed that they are well installed. But I keep getting the warning that they can't be couldn't be found when I tried importing them. So I thought maybe it was a Vite issue, then I tried it again in my NextJs app, yet the same problem. Please what could be wrong and how can it be fixed?

The marker tool for example says :

'Marker' is declared but its value is never read.ts(6133)
Could not find a declaration file for module '@editorjs/marker'. 'c:/Users/sewki/admin-zof/node_modules/@editorjs/marker/dist/marker.mjs' implicitly has an 'any' type.
  Try `npm i --save-dev @types/editorjs__marker` if it exists or add a new declaration (.d.ts) file containing `declare module '@editorjs/marker';`ts(7016)

And the link tool:

Cannot find module '@editorjs/code' or its corresponding type declarations.ts(2307)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions