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

TS7016: Could not find a declaration file for module class-transform. #13

Open
eldoccc opened this issue Nov 6, 2024 · 0 comments
Open

Comments

@eldoccc
Copy link

eldoccc commented Nov 6, 2024

I was looking forward to use this updated version of class-tranformer but got cut short when i got this error :

@rollup/plugin-typescript TS7016: Could not find a declaration file for module 'class-transform'. '/home/.../node_modules/class-transform/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/class-transform` if it exists or add a new declaration (.d.ts) file containing `declare module 'class-transform';`

8 import { plainToInstance } from "class-transform";

I tried clearing my node_modules and reloading my IDE.
Am I missing something ?

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