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

Could not find a declaration file using Typescript with Yarn #2

Open
RaviRamDhali opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@RaviRamDhali
Copy link

Typescript with Yarn
I am trying to install and use npm install fs-imagesize --legacy-peer-deps

Importing the following:

import Markdown from "react-markdown";
import remarkGfm from "remark-gfm";
import imageSize from "fs-imagesize";

Getting the following error:

Could not find a declaration file for module 'fs-imagesize'. 'c:/Projects/WebApp/ClientApp/node_modules/fs-imagesize/index.js' implicitly has an 'any' type.

Confirmed the following:
C:\Projects\WebApp\ClientApp\node_modules\fs-imagesize folder and files exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant