Skip to content

Remix Error: ENOENT: no such file or directory, open '.../node_modules/msw/lib/core/handlers/RequestHandler.mjs.map' #1946

@amanape

Description

@amanape

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 18 or higher

Node.js version

v20.10.0

Reproduction repository

https://github.com/amanape/remix-msw-client

Reproduction steps

  1. Create Remix app via bunx create-remix@latest.
  2. Follow MSW documentation for browser and node integration.
  3. Run bun dev

Note: Setting up only the browser mock allows the app to work fine, although does not actually intercept the requests. Implementing node mock causes the errors.

Current behavior

Error when starting the app.

Expected behavior

No error when starting the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds:triageIssues that have not been investigated yet.scope:nodeRelated to MSW running in Node

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions