failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: ex
I'm encountering an error when deploying my React application with TypeScript on Railway. The build fails with the following error:
Dockerfile:29
-------------------
27 | # build phase
28 | COPY . /app/.
29 | >>> RUN --mount=type=cache,id=s/5ae5d974-de73-4ff3-8547-a3251e249f00-node_modules/cache,target=/app/node_modules/.cache npm run build
30 |
31 | # fmt phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
Error: Docker build failed
2 Replies