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

a year ago

36 Replies

dayflareroblox
HOBBYOP

a year ago

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


dayflareroblox
HOBBYOP

a year 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
HOBBYOP

a year ago

Any help would be appreciated


dayflareroblox
HOBBYOP

a year ago

(It works locally)


brody
EMPLOYEE

a year ago

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


dayflareroblox
HOBBYOP

a year ago

looks like its forcing v18 on railway


dayflareroblox
HOBBYOP

a year ago

im using v20 locally


brody
EMPLOYEE

a year ago

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


dayflareroblox
HOBBYOP

a year ago

where do i force it to v20


brody
EMPLOYEE

a year ago

set your engines.node to 20


dayflareroblox
HOBBYOP

a year ago

wait where do i do that


dayflareroblox
HOBBYOP

a year ago

im blanking


brody
EMPLOYEE

a year ago

package.json


dayflareroblox
HOBBYOP

a year ago

oh 💀


dayflareroblox
HOBBYOP

a year ago

ok lemme re-deploy hopefully it works


dayflareroblox
HOBBYOP

a year ago

oh ye it iddnt fix it


dayflareroblox
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

well is the build using node 20 now?


dayflareroblox
HOBBYOP

a year ago

yes


brody
EMPLOYEE

a year ago

for some reason that yes does not fill me with confidence


dayflareroblox
HOBBYOP

a year ago


brody
EMPLOYEE

a year ago

are the dependencies being installed from a lock file?


dayflareroblox
HOBBYOP

a year ago

possibly lemme delete the lock file and generate a new one


dayflareroblox
HOBBYOP

a year ago

actually no, the lock file is in gitignore


brody
EMPLOYEE

a year ago

that's not ideal


dayflareroblox
HOBBYOP

a year ago


dayflareroblox
HOBBYOP

a year ago

i just got this error


dayflareroblox
HOBBYOP

a year ago

oh wait


dayflareroblox
HOBBYOP

a year ago

nevermind i managed to fix it


dayflareroblox
HOBBYOP

a year ago

it was the ts version using ^ instead of ~


dayflareroblox
HOBBYOP

a year ago

damn thing


brody
EMPLOYEE

a year ago

perfect


dayflareroblox
HOBBYOP

a year ago

ty for ur help


brody
EMPLOYEE

a year ago

you still wanna be using a lock file though


dayflareroblox
HOBBYOP

a year ago

ah


dayflareroblox
HOBBYOP

a year ago

alright


Loading...