Skip to content

(BUG) Cannot find module 'mongoose' or its corresponding type declarations.  #87

Closed
@jake-ruth-qm

Description

@jake-ruth-qm

When trying to compile typescript, I get this error:

Cannot find module 'mongoose' or its corresponding type declarations.

I tried rm -rf node_modules, package-lock.json, as well clean installing with yarn to see if that fixed it but no luck.

For now, I am just adding mongoose as a dev dep in my root package.json but I'd like if there is a solution for this.

I'm using the latest version (0.5.2) and tried downgrading as well. Still no luck.

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