Open SH20RAJ opened 5 months ago
as the error says lucide-react
peer dependency mismatch with react 19
downgrading to 18 could be a solution or
use --force
--legacy-peer-deps
flags to npm install
lucide-react now supports "react":^19.0.0
but not rc(release candidate)
https://github.com/lucide-icons/lucide/issues/2134#event-13293674013
For now, this is the solution it's working for me. This is just one more pain I've got for using next 15@rc npm install tailwindcss-animate class-variance-authority clsx tailwind-merge lucide-react@0.400.0 --legacy-peer-deps
check the blog solve this problem https://tutorialsmaterial.com/post/ShadCn-Nextjs-15
Describe the bug
Problem While Installing SHADCN on NextJS 15
Affected component/components
Installation
How to reproduce
Codesandbox/StackBlitz link
https://github.com/SH20RAJ/article
Logs
System Info
Before submitting