Open Housi opened 3 weeks ago
I'm experiencing the exact same issue!
How to produce
npx create-next-app@latest
<Theme></Theme>
into the root pageexport const runtime = "edge";
in the root pageAlso tried to follow this discussion: https://github.com/radix-ui/primitives/discussions/1915 but no luck
After switching runtime to 'edge' next won't build
I see there is similar issue which is closed as 'completed' with the solution to 'use client' ... Applying styles is not justified use-case for 'use client' (I could as well use styled-components in such scenario)
This is output after adding ' 'optimizePackageImports' and 'transpilePackages' in next-config. I tried both settings with "@radix-ui/themes", "@radix-ui/react-primitive" and "react-dom" (as someone suggested for vite), nothing works