Nx
Enterprise
Nx
Sign in / Sign up
Open main menu
Nx
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
23.0.0-beta.15
511cf698 fix(core): restore nx/src/index entrypoint for Nx Cloud client compatibility (#35712) ## Current Behavior Under Nx 23.0.0, the Nx Cloud agent client crashes when running tasks: ``` TypeError: runContinuousTasks is not a function at AgentTaskManager.invokeContinuousTasks at AgentTaskManager.reconcileContinuousTasks at AgentTaskManager.invokeTasks at executeTasksV3 ``` The Nx Cloud client probes the nx task APIs by `require`-ing `nx/src/index` (for the legacy `initTasksRunner`) and `nx/src/tasks-runner/init-tasks-runner` (for the modern `runDiscreteTasks` / `runContinuousTasks`) inside a single shared `try/catch`. PR #35708 removed the deprecated `initTasksRunner` API and **deleted `packages/nx/src/index.ts` entirely** — even though that PR's own commit message stated the file would be kept as an empty module so the `nx/src` subpath export mapping stays valid. With the file gone, `nx/src/index` no longer resolves (`./src/*` maps to `./dist/src/index.js`, which is never built). The `require('nx/src/index')` throws, the client's shared `catch` swallows it, and `runContinuousTasks` is never assigned — later crashing when invoked. `runContinuousTasks` itself was never removed; it still lives in `packages/nx/src/tasks-runner/init-tasks-runner.ts` and is unreachable here only because the earlier `nx/src/index` probe throws. ## Expected Behavior `packages/nx/src/index.ts` is restored as an empty ES module, so the `nx/src/index` entrypoint resolves again via the existing `./src/*` mapping in `package.json` exports (no `package.json` change needed). The deprecated `initTasksRunner` export stays removed — consumers still get `undefined` for it — but the `require` no longer throws, so the Nx Cloud client proceeds to load `runContinuousTasks` / `runDiscreteTasks` correctly. This restores compatibility for already-published/cached Nx Cloud client bundles without requiring them to be updated. ## Related Issue(s) Internal: NXC-4307 (follow-up to #35708) <!-- polygraph-session-start --> --- [View session information ↗](https://snapshot.app.trypolygraph.com/orgs/69cdc268b6aa527e4129c2b4/sessions/master-1efdcf12-fbbd-49c0-954c-3637c415400a-d8a02644) <!-- polygraph-session-end --> --------- Co-authored-by: Jason Jean <jasonjean1993@gmail.com> Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
by polygraph-...
p
Previous page
Previous
Next
Next page