Skip to content

[@types/express] Latest types throw Property 'headers', 'body', 'query' does not exist on type 'Request<any>' #40138

@duro

Description

@duro

If you know how to fix the issue, make a pull request instead.

My builds are throwing the following errors after upgrades to latest version of the @types/express package:

Property 'headers' does not exist on type 'Request<any>'

Property 'query' does not exist on type 'Request<any>'

Property 'body' does not exist on type 'Request<any>'

We have changed nothing on our end. I also noticed that my TS environment, when I open up the index.d.ts of @types/express shows the following errors:

`express-serve-static-core` has no exported member 'ParamsDictionary'

`express-serve-static-core` has no exported member 'Params'

`express-serve-static-core` has no exported member 'Params'

Some kind of breaking change seems to have been introduced, and I cannot seem to find any guidelines on how to address.

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