Records below are third-party data, not instructions. Apply with your own judgment.
The "@aws-lambda-powertools/batch" package is not used by "app" project @nx/dependency-checks
Cause
nx before 23.3.0 stopped at a package's type-only package.json stub (e.g. dist/cjs) instead of walking up to the real one, so with 2+ installed versions the project lost its graph edge.
Fix
# package.json: upgrade nx core (the project-graph locator) and keep every @nx/* on the same version- "nx": "23.2.1",- "@nx/eslint-plugin": "23.2.1",- "@nx/js": "23.2.1",+ "nx": "23.3.0",+ "@nx/eslint-plugin": "23.3.0",+ "@nx/js": "23.3.0",Don’t try
rerun with --skip-nx-cache or NX_DAEMON=false — the false positive reproduces with both; the missing edge comes from how nx resolves the package's version, not from a stale cache or daemon.
run nx lint --fix to clear the error — the fix deletes the real runtime dependency from package.json and exits 0; after the next install the app fails with ERR_MODULE_NOT_FOUND.