Skip to content

[Bug]: createMemoryRouter in test environment fails with node 18.15.0 #10273

Description

@neolivz

What version of React Router are you using?

16.9.0

Steps to Reproduce

Code available at
https://github.com/neolivz/vitejs-vite-p4q1rh

Run pnpm test in node 18.15.0 (test works with node 18.14.0 and 19.8.1)

Expected Behavior

Test should run successfullyThe test

Actual Behavior

I get the following error

TypeError: The "emitter" argument must be an instance of EventEmitter or EventTarget. Received an instance of AbortSignal

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions