Skip to content

build-docs fails with React 19 #1824

@simoneguzzi

Description

@simoneguzzi

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:

  1. I'm not using a config file
  2. Doesn't seem to be relevant
  3. node_modules/.bin/redocly build-docs your-openapi-schema.yaml
  4. 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_modules/.bin/redocly --version
1.26.0

Node.js Version(s)

❯ node --version
v20.13.1

OS, environment

macOS 15.1.1 (24B91)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't workingp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions