SapphireJS/TypeScript/DiscordJS Spam errors with TS.5.4 (Works locally)
dayflareroblox
FREEOP

2 years ago

36 Replies

dayflareroblox
FREEOP

2 years ago

4960b9d1-6849-4e59-ab39-5f65b5b89102


dayflareroblox
FREEOP

2 years ago

Basically, typescript 5.5 broke alot of stuff, but after trying to downgrade to 5.4.4 railway just refuses to acknowledge it, I'm not sure if it's to do with what version of node railway is tryna use though


dayflareroblox
FREEOP

2 years ago

Any help would be appreciated


dayflareroblox
FREEOP

2 years ago

(It works locally)


2 years ago

what version of node is railway using for your build, and what version are you using locally?


dayflareroblox
FREEOP

2 years ago

looks like its forcing v18 on railway


dayflareroblox
FREEOP

2 years ago

im using v20 locally


2 years ago

it's v18 by default, railway will use that if you don't specify otherwise


dayflareroblox
FREEOP

2 years ago

where do i force it to v20


2 years ago

set your engines.node to 20


dayflareroblox
FREEOP

2 years ago

wait where do i do that


dayflareroblox
FREEOP

2 years ago

im blanking


2 years ago

package.json


dayflareroblox
FREEOP

2 years ago

oh 💀


dayflareroblox
FREEOP

2 years ago

ok lemme re-deploy hopefully it works


dayflareroblox
FREEOP

2 years ago

oh ye it iddnt fix it


dayflareroblox
FREEOP

2 years ago

https://i.imgur.com/iYfiRqf.png still the same heaps of typescript errors


2 years ago

well is the build using node 20 now?


dayflareroblox
FREEOP

2 years ago

yes


2 years ago

for some reason that yes does not fill me with confidence


dayflareroblox
FREEOP

2 years ago


2 years ago

are the dependencies being installed from a lock file?


dayflareroblox
FREEOP

2 years ago

possibly lemme delete the lock file and generate a new one


dayflareroblox
FREEOP

2 years ago

actually no, the lock file is in gitignore


2 years ago

that's not ideal


dayflareroblox
FREEOP

2 years ago


dayflareroblox
FREEOP

2 years ago

i just got this error


dayflareroblox
FREEOP

2 years ago

oh wait


dayflareroblox
FREEOP

2 years ago

nevermind i managed to fix it


dayflareroblox
FREEOP

2 years ago

it was the ts version using ^ instead of ~


dayflareroblox
FREEOP

2 years ago

damn thing


2 years ago

perfect


dayflareroblox
FREEOP

2 years ago

ty for ur help


2 years ago

you still wanna be using a lock file though


dayflareroblox
FREEOP

2 years ago

ah


dayflareroblox
FREEOP

2 years ago

alright


Loading...