Skip to content

With Nextjs Error: Objects are not valid as a child. Encountered an object with the keys {}  #254

Closed
preactjs/preact
#3801
@mmdHasan-yazdanPanah

Description

@mmdHasan-yazdanPanah

I got this error on the last-release(5.2.5), I am working with Nextjs and entirely using SSG and ISR.
The error only appears on development(which all SSG becomes SSR) and no error on the build.
I am using preact/compat with type-aliasing method.

Solution: downgrade to ver 5.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions