splitbee / react-notion

A fast React renderer for Notion pages
https://react-notion.com
MIT License
2.85k stars 149 forks source link

Unsupported type undefined #117

Open thesonpb opened 1 year ago

thesonpb commented 1 year ago

I have encountered an issue while using the React-Notion library to render blocks from a Notion page. It seems that the library is not functioning properly with the current block structure of the Notion page.

When attempting to render the page, I noticed a console message stating "Unsupported type undefined". To investigate further, I set up a debugger and discovered that the problem is related to the block type. It appears that the library may not yet support the rendering of Paragraph blocks.

My Notion page primarily consists of basic elements such as headings and paragraphs. However, when I attempt to render the page using React-Notion, I encounter this error.

I believe it would be beneficial to enhance the React-Notion library's compatibility with various block types, including Paragraph blocks, to ensure a seamless rendering experience for users.

Steps to Reproduce:

Set up a Notion page with basic elements like headings and paragraphs. Use the React-Notion library to render the page. Check the console for any error messages. Expected Behavior: The React-Notion library should successfully render the Notion page blocks, including Paragraph blocks, without any error messages.

Actual Behavior: The library throws an "Unsupported type undefined" error in the console, indicating an issue with the block type, possibly due to the lack of support for Paragraph blocks, and the React-Notion library render nothing to the screen.