Skip to content

[BUG] error TS2688: Cannot find type definition file for 'express'. #60

@Miniontoby

Description

@Miniontoby

Hi, I added this to my project and it gives me an error whilst building my TS file.

$ npm run build
> mynpmproject@1.0.0 build
> tsc

node_modules/express-basic-auth/express-basic-auth.d.ts:1:23 - error TS2688: Cannot find type definition file for 'express'.

1 /// <reference types="express" />
                        ~~~~~~~


Found 1 error in node_modules/express-basic-auth/express-basic-auth.d.ts:1

Can someone maybe help to come up with a solution or patch?

  • Miniontoby

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions