Skip to content

[Bug]: Support canvas 3.x version as peer dependency of jest-environment-jsdom package #15507

Open
@mmanovic

Description

@mmanovic

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions