react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Issues in using react-notion-x in NextJS (app structure).

Open vule20 opened this issue 1 year ago • 1 comments

Description

I keep getting errors while using react-notion-x for my NextJS app. In the app/component/NotionPage.tsx, I did included "use client" at the top of the file, however I still get mistakes like this image

In addition, import { useRouter } from "next/route"; doesn't work too. When I changed it to import { useRouter } from "next/navigation", I solved the problem, however, the rendered content is not exactly same as Notion. Here's the output for my rendering

image

vule20 avatar Jan 25 '24 17:01 vule20