Bug with Next.js App Router in Server Component - Mocking stops working after refreshing #1610
Closed
4 tasks done
Labels
bug
Something isn't working
needs:triage
Issues that have not been investigated yet.
scope:node
Related to MSW running in Node
Prerequisites
Environment check
msw
versionNode.js version
16.20.0
Reproduction repository
https://github.com/Kolby-Udacity/msw-nextjs-app-router-bug
Reproduction steps
Current behavior
When using MSW with React Server Components via Next.js App Router, mocks work for the first page load, but refreshing the page will return a server error:
Expected behavior
Mocks continue to work after refreshing the page.
The text was updated successfully, but these errors were encountered: