nextjs calendar shadcn compatibility
Unanswered
Briard posted this in #help-forum
BriardOP
hi guys im still trying to install shadcn calendar component
I have
and when running npx shadcn@latest add calendar
i still get the error
I have
"date-fns": "^3.0.1",
"react-day-picker": "^9.5.1",
"peerDependencies": {
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
}
and when running npx shadcn@latest add calendar
i still get the error
Conflicting peer dependency: react@18.3.1
npm error node_modules/react
npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from react-day-picker@8.10.1
npm error node_modules/react-day-picker
npm error react-day-picker@"8.10.1" from the root project