Skip to content

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

@eldoccc

Description

@eldoccc

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions