Open Nick-Lucas opened 6 months ago
Workaround: override the build command with --build-cmd="pnpm nx run api:build:production --skip-nx-cache"
pnpx is broken in nixpacks, and also so is the nx cache if you don't include --skip-nx-cache
too, the cache may fail the build due to some integrity issue
Is there an existing issue for this?
Describe the bug
When building an app within an Nx monorepo, with pnpm, pnpx build command fails with the below error
nixpacks build . --name myimagename -e NIXPACKS_NX_APP_NAME=api
To reproduce
nixpacks build . --name myimagename -e NIXPACKS_NX_APP_NAME=appname
pnpm.cjs
errorExpected behavior
Build works
Environment
macOS locally, and Railway.app build env