Closed stimw closed 1 year ago
I also faced this quetion, but I solved.
<NotionRenderer
recordMap={blockMap}
components={{
equation: Equation,
code: Code,
collection: Collection,
collectionRow: CollectionRow
}}
mapPageUrl={mapPageUrl}
/>
Change code: Code
to Code: Code
.
Code should be capitalized
<NotionRenderer
recordMap={blockMap}
components={{
equation: Equation,
Code: Code,
collection: Collection,
collectionRow: CollectionRow
}}
mapPageUrl={mapPageUrl}
/>
Description
This problem occurred when I tried to upgrade this repo to nextjs13. The code block in the notion page is not rendered.
Below is its original code (/layouts/layout.js): (I tried using dynamic import or the solution in https://github.com/NotionX/react-notion-x/issues/406, didn't work)
Notion Test Page ID
https://www.notion.so/d3a1074627994f1b8475de6a919cb09c?v=d73ecce8fc274588b0c4aa775a4db279