-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"TypeError: root is not an Object" in react-native@0.59 #65
Comments
Downgrade to |
Clearly, what fixed an issue in Node.js has broken it in React Native. This will require some work to get it right. Do you know how React Native usually deals with globals? |
React Native apparently defines |
Fixed in v7.0.5. |
@ghengeveld I don't see 7.0.5 on npm: https://www.npmjs.com/package/react-async |
Thanks for letting me know! Forgot to do the actual npm publish. It's there now 👍 |
We're trying to use
react-async
in a React Native project and getting an immediate red screen withTypeError: root is not an Object
. This gets thrown from https://github.com/ghengeveld/react-async/blob/a1aa8231ad631b6edc98a73f2a9abdec8ed70681/packages/react-async/src/useAsync.js#L54We've traced the issue back to https://github.com/ghengeveld/react-async/blob/a1aa8231ad631b6edc98a73f2a9abdec8ed70681/packages/react-async/src/useAsync.js#L7 that does not resolve to
global
for some reason. If I remove the circular reference checkglobal.global === global
the error goes away but I don't know if that's quite correct.Looks like this was introduced in c5a4e09
The text was updated successfully, but these errors were encountered: