R
Railway2y ago
Vapor

Typescript App not starting

My project keeps failing on the build stage not completing the npm run build command. Anyone got an idea?
15 Replies
Percy
Percy2y ago
Project ID: 1dda6c62-9f19-460d-83f2-afe4ba907295
Vapor
Vapor2y ago
1dda6c62-9f19-460d-83f2-afe4ba907295
Brody
Brody2y ago
full build logs please
Vapor
Vapor2y ago
==============
Using Nixpacks
==============
context: f6306b506a792ef2a4a362eb6e94d7c4

╔═══════════ Nixpacks v1.5.1 ══════════╗
║ setup │ nodejs-16_x, npm-8_x ║
║──────────────────────────────────────║
║ install │ npm i ║
║──────────────────────────────────────║
║ build │ npm i typescript && tsc ║
║──────────────────────────────────────║
║ start │ npm run start ║
╚══════════════════════════════════════╝


#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile

#2 transferring dockerfile: 2.31kB done
#2 DONE 0.0s

#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1678752204

#3 DONE 0.1s

#4 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1678752204@sha256:fba77818e57bebd4e7a02f60d45554354d6ec5a3f7d98b4ee4f6b2a6e720191e
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 276.73kB 0.0s done
#5 DONE 0.0s

#6 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d
#6 CACHED

#7 [stage-0 2/8] WORKDIR /app/
#7 CACHED


#8 [stage-0 3/10] COPY .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix
#8 CACHED

#9 [stage-0 5/10] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile

#9 DONE 0.5s

#10 [stage-0 6/10] COPY . /app/.
#10 DONE 0.0s

#11 [stage-0 7/10] RUN --mount=type=cache,id=s/2a353557-773d-48dd-9528-19913013cd38-/root/npm,target=/root/.npm npm i

#11 0.850 npm WARN config production Use `--omit=dev` instead.

#11 15.59
#11 15.59 added 369 packages, and audited 370 packages in 15s
#11 15.59
#11 15.59 32 packages are looking for funding
#11 15.59 run `npm fund` for details
#11 15.59
#11 15.59 found 0 vulnerabilities

#11 DONE 15.8s

#12 [stage-0 8/10] COPY . /app/.
#12 DONE 0.0s

#13 [stage-0 9/10] RUN --mount=type=cache,id=s/2a353557-773d-48dd-9528-19913013cd38-node_modules/cache,target=/app/node_modules/.cache npm i typescript && tsc

#13 0.800 npm
WARN config production Use `--omit=dev` instead.

#13 2.181
#13 2.181 up to date, audited 370 packages in 1s
#13 2.181
#13 2.181 32 packages are looking for funding
#13 2.181 run `npm fund` for details
#13 2.183
#13 2.183 found 0 vulnerabilities

#13 12.24 src/Events/InteractionCreate.ts(553,9): error TS2554: Expected 2 arguments, but got 1.
==============
Using Nixpacks
==============
context: f6306b506a792ef2a4a362eb6e94d7c4

╔═══════════ Nixpacks v1.5.1 ══════════╗
║ setup │ nodejs-16_x, npm-8_x ║
║──────────────────────────────────────║
║ install │ npm i ║
║──────────────────────────────────────║
║ build │ npm i typescript && tsc ║
║──────────────────────────────────────║
║ start │ npm run start ║
╚══════════════════════════════════════╝


#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile

#2 transferring dockerfile: 2.31kB done
#2 DONE 0.0s

#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1678752204

#3 DONE 0.1s

#4 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1678752204@sha256:fba77818e57bebd4e7a02f60d45554354d6ec5a3f7d98b4ee4f6b2a6e720191e
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 276.73kB 0.0s done
#5 DONE 0.0s

#6 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d
#6 CACHED

#7 [stage-0 2/8] WORKDIR /app/
#7 CACHED


#8 [stage-0 3/10] COPY .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix
#8 CACHED

#9 [stage-0 5/10] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile

#9 DONE 0.5s

#10 [stage-0 6/10] COPY . /app/.
#10 DONE 0.0s

#11 [stage-0 7/10] RUN --mount=type=cache,id=s/2a353557-773d-48dd-9528-19913013cd38-/root/npm,target=/root/.npm npm i

#11 0.850 npm WARN config production Use `--omit=dev` instead.

#11 15.59
#11 15.59 added 369 packages, and audited 370 packages in 15s
#11 15.59
#11 15.59 32 packages are looking for funding
#11 15.59 run `npm fund` for details
#11 15.59
#11 15.59 found 0 vulnerabilities

#11 DONE 15.8s

#12 [stage-0 8/10] COPY . /app/.
#12 DONE 0.0s

#13 [stage-0 9/10] RUN --mount=type=cache,id=s/2a353557-773d-48dd-9528-19913013cd38-node_modules/cache,target=/app/node_modules/.cache npm i typescript && tsc

#13 0.800 npm
WARN config production Use `--omit=dev` instead.

#13 2.181
#13 2.181 up to date, audited 370 packages in 1s
#13 2.181
#13 2.181 32 packages are looking for funding
#13 2.181 run `npm fund` for details
#13 2.183
#13 2.183 found 0 vulnerabilities

#13 12.24 src/Events/InteractionCreate.ts(553,9): error TS2554: Expected 2 arguments, but got 1.
I've tried every possible build command I can think of btw I put in the wrong project ID its
046f170a-cb89-49fb-b56c-eda4a7ad0131
046f170a-cb89-49fb-b56c-eda4a7ad0131
Brody
Brody2y ago
please share your repo
Vapor
Vapor2y ago
its private 😅
Brody
Brody2y ago
no worries, I can't do anything with a project id anyway add me?
Vapor
Vapor2y ago
on github or railway?
Brody
Brody2y ago
add me to your github repo brody192
Vapor
Vapor2y ago
added
Brody
Brody2y ago
okay, unfortunately something just came up so I will get back to you
Vapor
Vapor2y ago
it really can't wait tho, its a production bot that has to be online. is there someone else that can help?
Brody
Brody2y ago
might I remind you that this is community support, anyone is welcome to come along and help you if I'm not available
Vapor
Vapor2y ago
I know Its simply a question if there's anyone else that can help that you know
Brody
Brody2y ago
if someone wants to help, they will come help, please be patient talk later!
Want results from more Discord servers?
Add your server