steps to reproduce Clone Repo cd nx-package-bug pnpm install nx run api:build:production --verbose This will build package/lib first and then attempt to build service/api