You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error appear in the front and on the server when we try to reach the home page after running
npm run dev
Application Error
FetchError: request to https://my-mock-api.com/ failed, reason: response3.headers.all is not a function
at NodeClientRequest.<anonymous> (/****/examples/msw/node_modules/@remix-run/web-fetch/src/fetch.js:112:11)
at NodeClientRequest.emit (node:events:517:28)
at NodeClientRequest.emit (/****/examples/msw/node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/NodeClientRequest.ts:299:22)
at /****/examples/msw/node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/NodeClientRequest.ts:153:14
The codeSandbox link seem to also have the same error
BTW: my node version is v18.18.0
The text was updated successfully, but these errors were encountered:
SylRob
changed the title
MSW example fail
MSW example not working
Sep 25, 2023
That problem was described in the README, as the used msw version didn't support node's fetch at that time.
I just upgraded the example to latest msw & remix version, and everything should be working fine.
Please open a new issue if you're still facing problems 🙏🏼
The MSW example seem to not be working anymore.
This error appear in the front and on the server when we try to reach the home page after running
The codeSandbox link seem to also have the same error
BTW: my node version is
v18.18.0
The text was updated successfully, but these errors were encountered: