2 years ago
i have been trying to diplopy an application Nodejs in typescript but it keeps failing
9 Replies
2 years ago
can you provide us the reason for it's failure? without any errors it would be near impossible for us to help.
2 years ago
Dockerfile:24
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/ nodemodules/cache,target=/app/nodemodules/.cache npm run build
25 |
26 |
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 2
Error: Docker build failed
2 years ago
that's only a tiny portion of the build logs and it does not contain any useful information, please attach your entire build logs, you may use this https://bookmarklets.up.railway.app/log-downloader/
2 years ago
Express and TypeScript
2 years ago
you have type errors that are preventing your app from building, please review your build logs and fix the type errors.
2 years ago
but i have test it fully on my local pc and on render.com and it works fine no error of sort thats why i came here asking im not sure is not coming from my app. as my app works fine even on render.com
2 years ago
during local development type errors are being ignored, render is also ignoring your type errors. Railway is not ignoring your type errors.