Error: Can't find variable: self
See original GitHub issueHello.
I am using redux-api-middleware
which is using version 2.2.1 of isomorphic-fetch
. I am experiencing an error where self
is undefined in React Native, which is a problem with this version of isomorphic-fetch
. Most issues I have seen regarding this issue have been closed, but I feel that this is a fairly common issue and I have not been able to find a good solution. I’d love to work together, with a maintainer or anyone else having this problem, to solve it.
Thank you for reading and for your work on this library.
The error seems to be coming from this file:
Here is the stack trace:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:25
- Comments:6
Top Results From Across the Web
React Native Error - Can't find variable: self - Stack Overflow
After adding a node module, isomorphic-fetch (version : ^2.2.1) in React Native app, I am getting an error of Can't find variable: self...
Read more >Can't find variable: self when using datocms-client with react ...
Hi, I'm trying out DatoCMS with a react native app, but when I try to import anything from datocms-client (e.g. { SiteClient })...
Read more >[Solved]-React Native Error - Can't find variable - appsloveworld
Coding example for the question React Native Error - Can't find variable: self-React Native.
Read more >ReferenceError: Can't find variable: process - ServiceNow
The java console reports "ReferenceError: Can't find variable: process". Pushing the component to my dev instance the component works fine.
Read more >Node.js – React Native Error – Can't find variable: self - iTecNote
After adding a node module, isomorphic-fetch (version : ^2.2.1) in React Native app, I am getting an error of Can't find variable: self...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is a fix I use :
For all those seeking for an isomorphic-fetch with React Native support alternative, see cross-fetch. It is updated and also brings optional polyfill.
graphql-request and VulcanJS are already using it.