#nextjs calendar shadcn compatibility

1 messages · Page 1 of 1 (latest)

tacit mirage
#

hi guys im still trying to install shadcn calendar component

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

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```