NotionX / react-notion-x

Fast and accurate React renderer for Notion. TS batteries included. ⚡️
https://react-notion-x-demo.transitivebullsh.it
MIT License
4.86k stars 570 forks source link

Not working for Next.js 13 #405

Open theindianappguy opened 1 year ago

theindianappguy commented 1 year ago

Description

Notion Test Page ID

transitive-bullshit commented 1 year ago

Are you using appDir? Do you have your renderer wrapped in a use client directive as a client component? What error(s) are you seeing?

theindianappguy commented 1 year ago

https://www.reddit.com/r/nextjs/comments/ywkwod/what_could_be_the_reason/?utm_source=share&utm_medium=web2x&context=3

theindianappguy commented 1 year ago

I tried the use client that does not work, and yes i am using app Directory.

transitive-bullshit commented 1 year ago

@theindianappguy here's an example of it working https://github.com/NotionX/react-notion-x/issues/406#issuecomment-1319196056

I'll need more details about what's not working in order to help.