testing-library / preact-hooks-testing-library

Simple and complete Preact hooks testing utilities that encourage good testing practices.
MIT License
56 stars 10 forks source link

Conflicting peer dependency `@testing-library/preact-hooks@"^1.1.0"` #18

Open anoukd opened 2 years ago

anoukd commented 2 years ago

Getting this error when running npm install & npm ci using npm 8.12.1:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @testing-library/preact-hooks@1.1.0
npm ERR! Found: @testing-library/preact@3.2.0
npm ERR! node_modules/@testing-library/preact
npm ERR!   dev @testing-library/preact@"^3.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @testing-library/preact@"^2.0.0" from @testing-library/preact-hooks@1.1.0
npm ERR! node_modules/@testing-library/preact-hooks
npm ERR!   dev @testing-library/preact-hooks@"^1.1.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @testing-library/preact@2.0.1
npm ERR! node_modules/@testing-library/preact
npm ERR!   peer @testing-library/preact@"^2.0.0" from @testing-library/preact-hooks@1.1.0
npm ERR!   node_modules/@testing-library/preact-hooks
npm ERR!     dev @testing-library/preact-hooks@"^1.1.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! See /Users/anouk/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/anouk/.npm/_logs/2022-06-10T10_21_51_045Z-debug-0.log
ArktinenSieni commented 1 year ago

@testing-library/preact and preact-hooks are conflicting, which prevents updating the preact-testing-library if the preact-hooks are installed to project. @testing-library/preact is still missing the renderHook-function.

Any progress with this? Is there anything I could help with? @nickmccurdy @aduth @CarsonMcKinstry @fbring

euclidesdry commented 1 year ago

@testing-library/preact and preact-hooks are conflicting, which prevents updating the preact-testing-library if the preact-hooks are installed to project. @testing-library/preact is still missing the renderHook-function.

Any progress with this? Is there anything I could help with? @nickmccurdy @aduth @CarsonMcKinstry @fbring

The same is occurring with me here, I'm using Preact 10.15.1 and @testing-library/preact@3.2.3