Norgate-AV/react-crestron-ch5-hooks

Conflicting Peer Dependency with @crestron/ch5-crcomlib

Opened this issue · 0 comments

Current Behavior

When I try to install this module, I always get a conflicting peer dependency error with ch5-crcomlib, and after installing the react hooks module with -f, any time I install a new module it still gives me the same error like so:
`PS C:\Crestron\CH5 Test\crestron-react-app> npm i @mui/icons-material
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @norgate-av/react-crestron-ch5-hooks@1.0.0
npm ERR! Found: @crestron/ch5-crcomlib@2.5.0
npm ERR! node_modules/@crestron/ch5-crcomlib
npm ERR! @crestron/ch5-crcomlib@"^2.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @crestron/ch5-crcomlib@"^1.2.0" from @norgate-av/react-crestron-ch5-hooks@1.0.0
npm ERR! node_modules/@norgate-av/react-crestron-ch5-hooks
npm ERR! @norgate-av/react-crestron-ch5-hooks@"^1.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @crestron/ch5-crcomlib@1.2.0
npm ERR! node_modules/@crestron/ch5-crcomlib
npm ERR! peer @crestron/ch5-crcomlib@"^1.2.0" from @norgate-av/react-crestron-ch5-hooks@1.0.0
npm ERR! node_modules/@norgate-av/react-crestron-ch5-hooks
npm ERR! @norgate-av/react-crestron-ch5-hooks@"^1.0.0" from the root project
npm ERR!
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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\steve\AppData\Local\npm-cache_logs\2023-10-22T07_59_01_267Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\steve\AppData\Local\npm-cache_logs\2023-10-22T07_59_01_267Z-debug-0.log`
2023-10-22T07_59_28_627Z-debug-0.log

I've attached the debug file as well

Expected behavior

Suggested solution(s)

Additional context

Your environment

System:
OS: Windows 10 10.0.22621
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Memory: 5.99 GB / 15.77 GB
Binaries:
Node: 18.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
npm: 10.0.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.9.2 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
Edge: Chromium (118.0.2088.57)
Internet Explorer: 11.0.22621.1
npmPackages:
@norgate-av/react-crestron-ch5-hooks: ^1.0.0 => 1.0.0
react: ^17.0.2 => 17.0.2
react-dom: ^17.0.2 => 17.0.2
typescript: ^4.6.2 => 4.6.2