Skip to content

[bug]: Installation fails of react-day-picker with Nextjs 15 #2569

Discussion options

You must be logged in to vote

Hello @gunnarrb , As we’re currently utilizing the latest versions of React and Next.js, it’s essential to ensure that all dependencies, including libraries like react-day-picker, remain compatible with these versions and do not revert to React 18 and below.

To enforce this across all packages in the project, we can use the following code block, Add this on package.json

"overrides": {
	"react": "$react",
	"react-dom": "$react-dom"
}

This configuration guarantees that the latest versions of react and react-dom are consistently applied throughout your app.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gpbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2559 on November 01, 2024 15:25.