Skip to content

Static Rendering issue on NextJS 16 with plate 52.0.8 #4771

@7H3XXX

Description

@7H3XXX

Description

Following the guide on Static rendering for statically rendered content with RSC (NextJS App router) gives this error :

Invalid source map. Only conformant source maps can be used to find the original code.
Cause: Error: sourceMapURL could not be parsed
... TypeError: Cannot read properties of undefined (reading 'H')

I tried downgrading to plate 51.1.3 and the issue doesn't appear there.

Reproduction URL

No response

Reproduction steps

1. Next 16.0.x AppRouter
2. Follow the instruction to install platejs
3. Try to render plate value/content statically -> [Static rendering](https://platejs.org/docs/static)
4. next dev
5. See error upon loading page

Plate version

52.0.8

Slate React version

0.118.1

Screenshots

Logs

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions