Description
Version
29.7.0
Steps to reproduce
jest-environment-jsdom package currently is not supporting the latest major canvas version 3.x https://github.com/Automattic/node-canvas/releases
Expected behavior
npm install is passing when we are using canvas 3.x version
Actual behavior
npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/canvas
npm error canvas@"3.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional canvas@"^2.5.0" from [email protected]
npm error node_modules/jest-environment-jsdom
npm error jest-environment-jsdom@"^29.7.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/canvas
npm error peerOptional canvas@"^2.5.0" from [email protected]
npm error node_modules/jest-environment-jsdom
npm error jest-environment-jsdom@"^29.7.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
Additional context
No response
Environment
Windows 11