Skip to content

Error when using passthrough #20

@andrew-paterson

Description

@andrew-paterson

I get the following error if I add passthrough to my server config.

For context this is on an Ember 5.11 app, with ember-mirage. If passthrough is removed, everything works great.

    at eval (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/mirage-msw/dist/msw-config.cjs?:61:24)
    at Array.forEach (<anonymous>)
    at createPassthroughRegistry (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/mirage-msw/dist/msw-config.cjs?:60:17)
    at PassthroughRegistry.add (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/mirage-msw/dist/msw-config.cjs?:86:33)
    at eval (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/mirage-msw/dist/msw-config.cjs?:381:27)
    at Array.forEach (<anonymous>)
    at MswConfig.passthrough (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/mirage-msw/dist/msw-config.cjs?:376:11)
    at Server.passthrough (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/miragejs/dist/mirage.cjs?:6463:35)
    at Server.routes (http://localhost:6202/assets/ember-5-11-0-app.js:755:14)
    at Server.loadConfig (webpack://__ember_auto_import__/./node_modules/.pnpm/[email protected]/node_modules/miragejs/dist/mirage.cjs?:6457:13)```

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