Skip to content
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

Error: Objects are not valid as a child. Encountered an object with the keys {0,1,2,3,4,5,6,7,8,9,10}. #65

Closed
lfre opened this issue Oct 15, 2022 · 2 comments

Comments

@lfre
Copy link

lfre commented Oct 15, 2022

Repro: https://github.com/lfre/preact-render-to-string-issue

preact-render-to-string 5.2.4+ throws errors in Development mode. Three things cause this:

function MyComponent({ name }) {
    return <div>My {name}</div>
}
@bfeister
Copy link

bfeister commented Oct 17, 2022

Same issue on my end, in my case import useSWR from 'swr' is the cause (as opposed to preact-render-to-string )

@lfre
Copy link
Author

lfre commented Oct 23, 2022

Confirming this is fixed on preact-render-to-string 5.2.6 👍

@lfre lfre closed this as completed Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants