Closed Grenish closed 2 weeks ago
Yeah, same issue but downgrading to react 18 seems to have solved it. However that is just a bandage:
npm install react@18 react-dom@18
check the blog solve this problem https://tutorialsmaterial.com/post/ShadCn-Nextjs-15
@tutorialsmaterials don't advertise your blog like that, especially when the solution adds more problems and a layer of complexity.
I'm working on a fix. Let's use https://github.com/shadcn-ui/ui/issues/5557 to track since they are related.
@VincentBarkman Yeah after downgrading to react 18, it's working fine.
@shadcn Best of luck with that. Also now when we install shadcn we get an extra option to use --force
or --legacy-peer-deps
but for now downgrading to react 18 seems to be a viable option for now. Hope it get's resolve in the future for react 19 RC and 19 stable.
Describe the bug
After installing next.js 15 stable with turbopack I'm getting errors while installing any libraries even shadcn/ui
Also at first I thought it might be because of
turbopack
so I redo it again with optingno
forturbopack
but the issue still persists.Affected component/components
Everything
How to reproduce
npx create-next-app@latest .
npx shadcn@latest init
ornpm install next-themes lucid-react
Codesandbox/StackBlitz link
https://github.com/Grenish/porfolio
Logs
System Info
Before submitting