Skip to content

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

Open
@anoukd

Description

@anoukd

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/[email protected]
npm ERR! Found: @testing-library/[email protected]
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/[email protected]
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/[email protected]
npm ERR! node_modules/@testing-library/preact
npm ERR!   peer @testing-library/preact@"^2.0.0" from @testing-library/[email protected]
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions