react-toastify icon indicating copy to clipboard operation
react-toastify copied to clipboard

Work with React experimental

Open chuacw opened this issue 4 months ago • 5 comments

Currently, doesn't work with React experimental because package.json says:

  "peerDependencies": {
    "react": "^18 || ^19",
    "react-dom": "^18 || ^19"
  },

Please support react experimental

chuacw avatar Aug 28 '25 11:08 chuacw

@chuacw which build of react are you specifying ?

fkhadra avatar Sep 27 '25 22:09 fkhadra

React 19 ("react": "^19.1.1")

chuacw avatar Sep 27 '25 23:09 chuacw

I believe it's an issue with your package.json. ^19 allows 19.*.* just fine. Image

fkhadra avatar Sep 28 '25 00:09 fkhadra

Oh, I misunderstood your question. The React version is indeed 19.1.1, but the React experimental version based on 19.1.1 version is not 19.1.1.

It is react-experimental and the version is "react@experimental", see here: https://react.dev/reference/react/experimental_useEffectEvent

chuacw avatar Sep 28 '25 00:09 chuacw

Oh gotcha, thanks for clarifying. I left the computer for today but I'll try out tomorrow and push a fix if needed.

fkhadra avatar Sep 28 '25 00:09 fkhadra