how to install react-pannellum library to react/ionic

Issue

I need to implement 3d panorama view in my react ionic app but I’m getting an error when I try install using either of the followings:

npm install --save react-pannellum

npm install --save pannellum

> npm WARN config global `--global`, `--local` are deprecated. Use
> `--location=global` instead.
> 
> npm ERR! code ERESOLVE
> 
> npm ERR! ERESOLVE unable to resolve dependency tree
> 
> npm ERR! While resolving: [email protected]
> 
> npm ERR! Found: [email protected]
> 
> npm ERR! node_modules/react
> 
> npm ERR!   [email protected]"^18.2.0" from the root project
> 
> 
> npm ERR! Could not resolve dependency:
> 
> npm ERR! peer [email protected]"17.0.2" from [email protected]
> 
> npm ERR! node_modules/react-pannellum
> 
> npm ERR!   [email protected]"*" from the root project
> 
> 
> npm ERR! Fix the upstream dependency conflict, or retry
> 
> npm ERR! this command with --force, or --legacy-peer-deps
> 
> npm ERR! to accept an incorrect (and potentially broken) dependency
> resolution.

Solution

npm install --save react-pannellum --force 

Answered By – Muhammed ─░lan

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published