evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

Evergreen Not working with React 19 and above

Open blessedjasonmwanza opened this issue 1 year ago • 2 comments

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

Image

blessedjasonmwanza avatar Feb 10 '25 08:02 blessedjasonmwanza

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.

sylvain258 avatar Feb 19 '25 14:02 sylvain258

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

KillerCodeMonkey avatar Mar 05 '25 08:03 KillerCodeMonkey