Skip to content

[2.0.2] peerDependency warning with the new release #703

@AviVahl

Description

@AviVahl

Checks

Describe the bug (be clear and concise)

Latest version requires @types/express as a peerDependency, printing warnings for non-typescript projects as well.

Step-by-step reproduction instructions

mkdir testproxy
cd testproxy
yarn init -y
yarn add http-proxy-middleware

see message:
`warning " > [email protected]" has unmet peer dependency "@types/express@^4.17.13".`

Expected behavior (be clear and concise)

No warnings when installing package. Don't require users to install @types packages as if everyone is using typescript.

How is http-proxy-middleware used in your project?

via `webpack-dev-server`, like half the web.

What http-proxy-middleware configuration are you using?

Irrelevant

What OS/version and node/version are you seeing the problem?

Fedora 35; Node 16.13.2; yarn 1.22.17

Additional context (optional)

Regressed by #700

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions