R
Railway•6mo ago
Comandante

Error Build Time out Node TypeScript puppeteer

No description
19 Replies
Percy
Percy•6mo ago
Project ID: 318bdceb-bd11-4a39-90f9-3090fc272fe0
Comandante
ComandanteOP•6mo ago
318bdceb-bd11-4a39-90f9-3090fc272fe0
bbgun
bbgun•6mo ago
Was just going to post. Seems like there's an issue with building in general from the past 15 mins or so. Also getting a lot of 504 gateway-timeout issues from cloudflare when accessing the railway api.
Comandante
ComandanteOP•6mo ago
I don't think that's because I'm getting the same error from last week
bbgun
bbgun•6mo ago
Could be unrelated as well. Are you getting any builds through?
Comandante
ComandanteOP•6mo ago
let me try with other deploy
Brody
Brody•6mo ago
you are trying to start your server during build
Comandante
ComandanteOP•6mo ago
How do I prevent it from starting on its own?
Brody
Brody•6mo ago
are you starting the server in your build script?
Comandante
ComandanteOP•6mo ago
im dont sure 🫣 "start": "node build/main.js", "dev": "ts-node-dev src/main.ts", "build": "ts-node src/main.ts", The script is by default so I understand that the Start script is being used
Brody
Brody•6mo ago
yes you are starting your server in the build script
Comandante
ComandanteOP•6mo ago
how i can do to not do thath?
Brody
Brody•6mo ago
have ts-node build not run the ts file
Comandante
ComandanteOP•6mo ago
I have to change: "start": "node build/main.js", by: "start": "ts-node build/main.js", ?
Brody
Brody•6mo ago
that can work, but also remove the build script
Comandante
ComandanteOP•6mo ago
thanks you a lot, im currently trying right now, but bbgum is right i just redeploy a already deploy proyect and got the same issue
Brody
Brody•6mo ago
your issue is a config issue, you where starting your server duing build
Comandante
ComandanteOP•6mo ago
hello brody, now its completed but thorw this error: node:internal/modules/cjs/loader:1143 throw err; ^ Error: Cannot find module './main.js'
Brody
Brody•6mo ago
show me your scripts please
Want results from more Discord servers?
Add your server