Current Behavior
node executor from @nx/js is broken when used in combination with tsc.
Expected Behavior
Node executor should not throw any errors when used in combination with the (inferred) build target from @nx/js/typescript plugin.
GitHub Repo
https://github.com/thdk/nx-monorepo-demo
Steps to Reproduce
- Create a node app and use the inferred build target from
@nx/js/typescript plugin.
- Add a serve target to the node app that uses the
node executorfrom@nx/js`
See demo repo: https://github.com/thdk/nx-monorepo-demo
pnpm exec nx serve node-tsc
Nx Report
Node : 24.11.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 10.30.3
daemon : Available
nx : 22.6.4
@nx/js : 22.6.4
@nx/eslint : 22.6.4
@nx/workspace : 22.6.4
@nx/jest : 22.6.4
@nx/devkit : 22.6.4
@nx/esbuild : 22.6.4
@nx/eslint-plugin : 22.6.4
@nx/module-federation : 22.6.4
@nx/nest : 22.6.4
@nx/node : 22.6.4
@nx/playwright : 22.6.4
@nx/plugin : 22.6.4
@nx/react : 22.6.4
@nx/rollup : 22.6.4
@nx/vite : 22.6.4
@nx/vitest : 22.6.4
@nx/web : 22.6.4
@nx/webpack : 22.6.4
@nx/docker : 22.6.4
typescript : 5.9.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/js/typescript
@nx/eslint/plugin
@nx/jest/plugin
@nx/react/router-plugin
@nx/vite/plugin
@nx/playwright/plugin
@thdk/nx-terraform/plugin
@nx/docker
@nx/vitest
@nx/webpack/plugin
---------------------------------------
Local workspace plugins:
@thdk/nx-terraform
---------------------------------------
Cache Usage: 0.00 B / 46.04 GB
Failure Logs
Error: Could not find apps/node-tsc/dist/**/*.{js,cjs,mjs,jsx,d.ts,d.cts,d.mts}{,.map}/main.js. Make sure your build succeeded.
at fileToRunCorrectPath (/Users/thdk/repos/thdk/nx-monorepo-demo/node_modules/.pnpm/@nx+js@22.6.4_@babel+traverse@7.29.0_@swc-node+register@1.11.1_@emnapi+core@1.7.0_@emna_42c4a670e6546c0a640b37e16ea34150/node_modules/@nx/js/src/executors/node/node.impl.js:359:11)
at /Users/thdk/repos/thdk/nx-monorepo-demo/node_modules/.pnpm/@nx+js@22.6.4_@babel+traverse@7.29.0_@swc-node+register@1.11.1_@emnapi+core@1.7.0_@emna_42c4a670e6546c0a640b37e16ea34150/node_modules/@nx/js/src/executors/node/node.impl.js:122:49
at new Promise (<anonymous>)
at Object.start (/Users/thdk/repos/thdk/nx-monorepo-demo/node_modules/.pnpm/@nx+js@22.6.4_@babel+traverse@7.29.0_@swc-node+register@1.11.1_@emnapi+core@1.7.0_@emna_42c4a670e6546c0a640b37e16ea34150/node_modules/@nx/js/src/executors/node/node.impl.js:113:36)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async processQueue (/Users/thdk/repos/thdk/nx-monorepo-demo/node_modules/.pnpm/@nx+js@22.6.4_@babel+traverse@7.29.0_@swc-node+register@1.11.1_@emnapi+core@1.7.0_@emna_42c4a670e6546c0a640b37e16ea34150/node_modules/@nx/js/src/executors/node/node.impl.js:78:13)
at async Timeout._onTimeout (/Users/thdk/repos/thdk/nx-monorepo-demo/node_modules/.pnpm/@nx+js@22.6.4_@babel+traverse@7.29.0_@swc-node+register@1.11.1_@emnapi+core@1.7.0_@emna_42c4a670e6546c0a640b37e16ea34150/node_modules/@nx/js/src/executors/node/lib/coalescing-debounce.js:24:40)
Node.js v24.11.0
Package Manager Version
No response
Operating System
Additional Information
Most likely introduced by #35041
Current Behavior
nodeexecutor from@nx/jsis broken when used in combination with tsc.Expected Behavior
Node executor should not throw any errors when used in combination with the (inferred) build target from
@nx/js/typescriptplugin.GitHub Repo
https://github.com/thdk/nx-monorepo-demo
Steps to Reproduce
@nx/js/typescriptplugin.nodeexecutorfrom@nx/js`See demo repo: https://github.com/thdk/nx-monorepo-demo
pnpm exec nx serve node-tscNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
Most likely introduced by #35041