Skip to content

Prop className did not match #62

@whitedelay

Description

@whitedelay

Hello, thank you for your great project.

I have an issue.
I rendered my notion page using react-notion-x in my next.js project, and this error sometimes occurred.

Warning: Prop "className" did not match. Server: " language-bash" Client: "language-bash"

I found that the class name of code block has space at the front.

<pre class="notion-code language-bash">
  <code class=" language-bash">

Only code block has this issue.
Do you know how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions