Skip to content

[Bug]: esbuild peer dependency prevents me from using it in my project #3346

@oliversalzburg

Description

@oliversalzburg

Version

27.1.3

Steps to reproduce

yarn add -D [email protected] ts-jest

Expected behavior

I can use esbuild in my project, without being limited by ts-jest.

Actual behavior

ts-jest expectations conflict with my own:

➤ YN0000: ┌ Resolution step
➤ YN0060: │ @fairmanager/core@workspace:. provides esbuild (p85d60) with version 0.12.28, which doesn't satisfy what ts-jest requests
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code

➤ YN0000: @fairmanager/core@workspace:. provides esbuild@npm:0.12.28 with version 0.12.28, which doesn't satisfy the following requirements:

➤ YN0000: ts-jest@npm:27.1.3 [01b40] → ~0.14.0 ✘

Debug log

none

Additional context

That ts-jest tries to consume esbuild in the first place, is unexpected. I would gladly use the latest version of ebuild, but I want to use @anatine/esbuild-decorators, which is not compatible with 0.14.x.

Environment

System:
    OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (12) x64 Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz
  Binaries:
    Node: 16.14.1 - /usr/bin/node
    Yarn: 3.2.0 - /usr/bin/yarn
    npm: 8.5.0 - /usr/bin/npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions