React Native: Property 'Document' doesn't exist
#2359
Unanswered
rodperottoni
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using
[email protected]
on Expo SDK 51. When calling.listen()
on myserver
instance, all requests start failing with the following error:setupServer
is indeed imported frommsw/native
.After digging around, I found out the latest
XMLHttpRequestInterceptor
makes use of the globalDocument
property, which is not available on React Native or Expo applications.The usage can be seen here: XMLHttpRequestController.ts
I'm wondering if anyone else has faced this issue and how did they solve it?
Beta Was this translation helpful? Give feedback.
All reactions