-
Notifications
You must be signed in to change notification settings - Fork 143
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
Objects are not valid as a React child Error #98
Comments
We are also having this issue on version 0.12.0. We upgraded the package to 1.0.0 but it seems to break because of a seperate issue with Enzyme Adapter 16. |
@EUGinsane which version are you running? |
I had the same issue - I was running an older version (0.14.0) but when updated to (1.0.0) the error was resolved. Hope this helps someone. |
Ah found the issue, it's because it's using 1.0.0 from react-async-script instead of the pre 1.0 because the range was too vast.. I'll release a 0.14.1 to fix that. In the mean time add |
Published 0.14.1 @TheDavinator @EUGinsane |
Can you tell me which version of react-async-script is installed ? |
@dozoisch good find with |
I'm using react-async-script version ^0.11.1, react ^16.0.0 and react-google-captcha ^0.12.0 and I'm still getting this issue when I render this component as a child component.
Any possible workarounds here? |
@LuisAverhoff i think this is related to #105. does the new v |
I just tried |
I got an example codesandbox.io running with https://codesandbox.io/s/0qv560n87p Could someone get an example repo/codesandbox running with this error so we can attempt to replicate and solve? Some devs at my company did see something similar to this when the new versions got released and required a "refresh and rebuild", I'm starting to think these( |
For me, this solved the issue. |
Hi, 2 days ago, it works perfectly fine, but today I run my project again and this happens:
Objects are not valid as a React child (found: object with keys {$$typeof, render, displayName, propTypes, sitekey, onChange}). If you meant to render a collection of children, use an array instead.
in wrapWithAsyncScript (at LoginModal.js:152)
in div (at LoginModal.js:147)
in LoginModal (at Authentication.js:30)
in div (at Authentication.js:28)
in Authentication (created by Form(Authentication))
in Form(Authentication) (at App.js:8)
in App (at index.js:7)
I swear to God that I changed nothing since the day it worked. I tried to implement only the recaptcha in a new empty project and it still happens, here is my code:
Is there anything wrong with the library ? I'm using React version 16.4.1
The text was updated successfully, but these errors were encountered: