Following React Native docs does not work and Property 'TransformStream' doesn't exist on React Native (runtime) #2367
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
v18.15.0
Reproduction repository
https://github.com/lgibso34/react-native-msw
Reproduction steps
Similar to #2344 but not Jest related.
main
branchTransformStream error
1.
git checkout bug/sync
2. npm start
3. launch on device
Current behavior
Bug 1: Seems that React Native does not support the dynamic import syntax and fails to register the component in time.
Bug 2: Property 'TransformStream' doesn't exist on React Native at runtime running the synchronous code. This would also occur if the async version (bug 1) worked
Expected behavior
Bug 1: I expect the docs to explain how to get this working with additional metro config or a complete example with Metro and RN CLI. I expect the docs to accurately describe how to get msw to work in React Native.
Bug 2: I expect this to work on React Native like the docs suggest.
Async error (main)
Sync error (bug/sync)
The text was updated successfully, but these errors were encountered: