`@nx/esbuild 20.2.2` depends on a very old esbuild version `unmet peer esbuild@~0.19.2: found 0.24.0`
kasir-barati opened this issue · 0 comments
kasir-barati commented
Current Behavior
So when I do pnpm i @nx/esbuild
and pnpm update --latest
pnpm upgrades my esbuild to latest version which ATM is 0.24.0
.
But IDK why we are still using a very old version of esbuild: 0.19.2
.
Expected Behavior
Just use the latest version IMO.
GitHub Repo
N/A
Steps to Reproduce
-
npx create-nx-workspace --pm pnpm
Need to install the following packages: create-nx-workspace@20.2.2 Ok to proceed? (y) y NX Let's create a new workspace [https://nx.dev/getting-started/intro] ✔ Where would you like to create your workspace? · org ✔ Which stack do you want to use? · node ✔ What framework should be used? · express ✔ Integrated monorepo, or standalone project? · integrated ✔ Application name · org ✔ Would you like to generate a Dockerfile? [https://docs.docker.com/] · No ✔ Which CI provider would you like to use? · skip ✔ Would you like remote caching to make your build faster? · skip
-
cd org
. -
nx add @nx/esbuild
. -
pnpm update --latest
.
Then you'll see this log:
Downloading @swc/core-linux-x64-gnu@1.10.1: 16.73 MB/16.73 MB, done
Downloading @swc/core-linux-x64-musl@1.10.1: 20.67 MB/20.67 MB, done
WARN 2 deprecated subdependencies found: glob@7.2.3, inflight@1.0.6
Packages: +54
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 708, reused 647, downloaded 12, added 52, done
node_modules/.pnpm/@swc+core@1.10.1_@swc+helpers@0.5.15/node_modules/@swc/core: Running postinstall script, done in 68ms
node_modules/.pnpm/esbuild@0.24.0/node_modules/esbuild: Running postinstall script, done in 73ms
node_modules/.pnpm/nx@20.2.2_@swc-node+register@1.10.9_@swc+core@1.10.1_@swc+helpers@0.5.15__@swc+types@0.1.17_t_z3hgweekadmc27ddd3lyabfbym/node_modulenode_modules/.pnpm/nx@20.2.2_@swc-node+register@1.10.9_@swc+core@1.10.1_@swc+helpers@0.5.15__@swc+types@0.1.17_t_z3hgweekadmc27ddd3lyabfbym/node_modules/nx: Running postinstall script, done in 1.4s
dependencies:
- express 4.18.3
+ express 4.21.2
devDependencies:
- @swc-node/register 1.9.2
+ @swc-node/register 1.10.9
- @swc/core 1.5.29
+ @swc/core 1.10.1
- @types/express 4.17.21
+ @types/express 5.0.0
- @types/node 18.16.20
+ @types/node 22.10.2
- esbuild 0.19.12
+ esbuild 0.24.0
- prettier 2.8.8
+ prettier 3.4.2
- ts-node 10.9.1
+ ts-node 10.9.2
- typescript 5.6.3
+ typescript 5.7.2
WARN Issues with peer dependencies found
.
└─┬ @nx/esbuild 20.2.2
└── ✕ unmet peer esbuild@~0.19.2: found 0.24.0
Let's forget about prettier which is one major version behind (😞) and focus on the esbuild.
Nx Report
NX Report complete - copy this into the issue template
Node : 22.12.0
OS : linux-x64
Native Target : x86_64-linux
pnpm : 9.13.2
nx (global) : 20.0.6
nx : 20.2.2
@nx/js : 20.2.2
@nx/jest : 20.2.2
@nx/eslint : 20.2.2
@nx/workspace : 20.2.2
@nx/esbuild : 20.2.2
@nx/eslint-plugin : 20.2.2
@nx/node : 20.2.2
typescript : 5.7.2
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/jest/plugin
Failure Logs
N/A.
Package Manager Version
9.13.2
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
N/A.