farminf / pannellum-react

React Component for Pannellum (open source panorama viewer for the web)
MIT License
112 stars 81 forks source link

Unable to use with React 17 #90

Closed TanvirMahin24 closed 2 years ago

TanvirMahin24 commented 2 years ago

While installing the package error shows up. The error:

npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.x" from pannellum-react@1.2.4
npm ERR! node_modules/pannellum-react
npm ERR!   pannellum-react@"1.2.4" from the root project

I am using React 17.0.2.

farminf commented 2 years ago

it should work but anyways, try new version 1.3.3 please and let me know. the demo app in the repo works with React 17 and now it is upgraded

kayvaninvemo commented 2 years ago

I tried and it is still give error, I could use npm i pannellum-react@1.3.3 --force