← All tasks
javascriptkulshekhar/ts-jest #3346Not a task: already works

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

envgap__kulshekhar__ts-jest-3346

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
573c4cd1e0e8a3f06b22e9edc65d8f40ec77ce35
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

kulshekhar/ts-jest #3346 · read the original issue
### Version

27.1.3

### Steps to reproduce

`yarn add -D esbuild@0.12.28 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:



```shell

➤ 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

```shell
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
```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]