editor-js / editor-js/embed

Cannot Find Module Or It's Type Declaration.

Open
#139 4 comments 3 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
159
Forks
105
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.