Skip to content

TS2345 error on network.use with the example from the readme #28

@maksnester

Description

@maksnester
TS2345: Argument of type HttpHandler is not assignable to parameter of type
WebSocketHandler | RequestHandler<RequestHandlerDefaultInfo, any, any, RequestHandlerOptions>
Type HttpHandler is not assignable to type
RequestHandler<RequestHandlerDefaultInfo, any, any, RequestHandlerOptions>
Types have separate declarations of a private property __kind
Image

npm ls msw output:

├─┬ e2e-tools@0.0.0 -> ./tests/e2e-tools
│ └─┬ @msw/playwright@0.4.2
│   └── msw@2.12.7 deduped
└── msw@2.12.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions