Prerequisites
Environment check
Node.js version
>= 16
Reproduction repository
https://github.com/khoi-fish/with-msw-fix/tree/fix
Reproduction steps
yarn
yarn dev
- Navigate to
localhost:3000
- Notice that the page loads fine
- Hit refresh
msw fails to intercept request and the page breaks
Current behavior
Expected behavior
The expectation is that refreshing should not break the page.
Prerequisites
Environment check
mswversionNode.js version
>= 16Reproduction repository
https://github.com/khoi-fish/with-msw-fix/tree/fix
Reproduction steps
yarnyarn devlocalhost:3000mswfails to intercept request and the page breaksCurrent behavior
Expected behavior
The expectation is that refreshing should not break the page.