Evergreen Not working with React 19 and above
Evergreen fails to resolve dependency issues for React V19 and above. Please help as soon as possible. Our team depends on this library and currently, it's the only one failing to work with React 19
Hello,
I "resolved" this problem, but I don't know if it is a good idea :
npm install --force evergreen-ui
and that is working.
PS : npm install after npm create vite@latest my-project returns problem, for the same reasons.
as a workaround try to use the overrides property of the package.json
https://docs.npmjs.com/cli/v10/configuring-npm/package-json?v=true#overrides
{
"overrides": {
"evergreen-ui": {
"react": "$react",
"react-dom": "$react-dom"
}
}
}
this overrides the react dependency of the package evergreen-ui with the react version specified in your (dev)dependencies