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

Outdated dependency

Open Codename-404 opened this issue 1 year ago • 4 comments

Do you have plan to update the dependencies of this project? Such as it conflicts with the latest version of react, postcss etc.

Codename-404 avatar Jun 24 '23 05:06 Codename-404

Yes facing the same issue, is there any tweak to use it with v18.2 of react ?

Dave-Rushabh avatar Aug 06 '23 16:08 Dave-Rushabh

Hi @Codename-404 @Dave-Rushabh , I'll try to upgrade version to compatible with latest react version.

hoaiduyit avatar Aug 08 '23 05:08 hoaiduyit

We are also using this library, thanks for your great work! We are also being prevented from upgrading to React 18.2 because of it, so we would greatly appreciate an official update.

cjauvin avatar Aug 11 '23 17:08 cjauvin

as suggested by @notnotzero in the following thread (https://github.com/hoaiduyit/react-pannellum/issues/94#issuecomment-1594401224), we fixed our problem by overriding react-pannellum's dependencies in our own package.json. We didn't have any conflict with postcss so we just overrided react and react-dom.

 "overrides": {
    "react-pannellum": {
      "react": "$react",
      "react-dom": "$react-dom"
    }
  },
  "dependencies": {
    (.....)
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-pannellum": "^0.2.6",
    (.....)

jean-kiepura avatar Aug 16 '23 13:08 jean-kiepura