-
Notifications
You must be signed in to change notification settings - Fork 158
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
build-docs
fails with React 19
#1824
Comments
I'm having this problem and I don't have React declared at all. I see now the Redocly is pulling in the latest React and that's why I'm seeing this error. Here's my patch to make it work:
|
Thanks for rising this issue! @AlexVarchuk could you check if that's a Redoc issue? Does it support React 19 at all? |
Hi @tatomyr, I think it is a React 19 issue in Redoc. We'll look into it. |
This week we are going to deploy Redoc CE with supporting React 19. |
Hi All 👋 Thank you for the neat tool you developed 😎 I just updated my project to React 19, and the
build-docs
script seems to have a problem with that.Describe the bug
build-docs
fails with React 19.To Reproduce
Steps to reproduce the behavior:
node_modules/.bin/redocly build-docs your-openapi-schema.yaml
Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, props, _owner, _store}). If you meant to render a collection of children, use an array instead.
Expected behavior
Script should run without errors.
Logs
❯ node_modules/.bin/redocly build-docs schema.yaml Found undefined and using theme.openapi options Prerendering docs Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, props, _owner, _store}). If you meant to render a collection of children, use an array instead.
OpenAPI description
Redocly Version(s)
Node.js
Version(s)OS, environment
macOS 15.1.1 (24B91)
Additional context
The text was updated successfully, but these errors were encountered: