Open FleetAdmiralJakob opened 1 month ago
Last time I tried removing "use client"
on this page it would break the app. Not sure why.
Maybe solution is in writing the code slightly differently, referencing original source for code on this page: https://github.com/get-convex/convex-nextjs-app-router-demo/blob/main/app%2Fpost%2F%5Bid%5D%2Fpage.tsx.
The component in ./app/(crud)/post/[id]/page.tsx is a client component.
This is not allowed https://nextjs.org/docs/messages/no-async-client-component.
I found this when running
pnpm build
(for you it must benpm build
)Possible fix
Remove "use client" from the top of the file