Closed trace2798 closed 1 month ago
we have the very same issue as well
This normally happens when runtime is edge
Yup. I just moved back to shadcn/ui
Hi, Exact same issue here :( I built my whole app with radix UI components, everything was working fine locally but now I can't compile. Anybody has a workaround or should I rewrite all my components ?
Probably because layout.tsx, which imports Theme, is server components. https://github.com/trace2798/latest-test-cf-nx-radix/blob/master/app/layout.tsx
The following may be helpful. https://github.com/snelsi/nextjs-radix-themes-template/blob/main/src/app/providers.tsx#L1
Probably because layout.tsx, which imports Theme, is server components. https://github.com/trace2798/latest-test-cf-nx-radix/blob/master/app/layout.tsx
The following may be helpful. https://github.com/snelsi/nextjs-radix-themes-template/blob/main/src/app/providers.tsx#L1
That worked flawlessly, thank you so much !
yup the above solutions works! Just to tinker a bit, is there a way without using 'use client' ?
Since @nkg168 pointed out the solution which made it work I am closing this issue. Thanks a lot @nkg168
This example is client component, so it's not possible to render RSC with radix themes on the edge?
👀
When I tried to use Radix theme with Next.js and Cloudflare pages, during the build process I got this error
To reproduce:
Steps I took to create it:
In the past, I have used radix theme in a similar way and it always worked flawlessly.