Node/Nestjs Deployed failed
darmau
HOBBYOP

2 years ago

Almost the same code, deployed without issue a few days ago, but now deployment fails with the following log:

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/de75ee4e-8d48-48e6-80c3-7f2e675ebaef-nodemodules/cache,target=/app/nodemodules/.cache prisma generage && pnpm run build

ERROR: failed to solve: process "/bin/bash -ol pipefail -c prisma generage && pnpm run build" did not complete successfully: exit code: 1

Error: Docker build failed

Searching the community, I found similar issues, saying it was due to pnpm 9. However, even after switching to pnpm 8.x and regenerating the pnpm-lock.yaml file, it still fails.

Local environment:
pnpm 8.15.1
node 20.12.2.

Solved

5 Replies

darmau
HOBBYOP

2 years ago

build command: prisma generate && pnpm run build
git repo: https://github.com/Darmau/shinano-api


2 years ago

Your logs do not actually show the error, please provide your full build logs -

https://bookmarklets.up.railway.app/log-downloader/


darmau
HOBBYOP

2 years ago

This is the full logs. Thanks

Attachments


darmau
HOBBYOP

2 years ago

Sorry I have located the error. A bug caused by a typo.


Status changed to Solved Railway almost 2 years ago


2 years ago

Yeah I see that now, glad you where able to solve this!


Loading...