R
Railway•5mo ago
dayflare

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

24 Replies
Percy
Percy•5mo ago
Project ID: 4960b9d1-6849-4e59-ab39-5f65b5b89102
dayflare
dayflareOP•5mo ago
4960b9d1-6849-4e59-ab39-5f65b5b89102 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 Any help would be appreciated (It works locally)
Brody
Brody•5mo ago
what version of node is railway using for your build, and what version are you using locally?
dayflare
dayflareOP•5mo ago
looks like its forcing v18 on railway im using v20 locally
Brody
Brody•5mo ago
it's v18 by default, railway will use that if you don't specify otherwise
dayflare
dayflareOP•5mo ago
where do i force it to v20
Brody
Brody•5mo ago
set your engines.node to 20
dayflare
dayflareOP•5mo ago
wait where do i do that im blanking
Brody
Brody•5mo ago
package.json
dayflare
dayflareOP•5mo ago
oh 💀 ok lemme re-deploy hopefully it works oh ye it iddnt fix it
dayflare
dayflareOP•5mo ago
https://i.imgur.com/iYfiRqf.png still the same heaps of typescript errors
Imgur
Brody
Brody•5mo ago
well is the build using node 20 now?
dayflare
dayflareOP•5mo ago
yes
Brody
Brody•5mo ago
for some reason that yes does not fill me with confidence
Brody
Brody•5mo ago
are the dependencies being installed from a lock file?
dayflare
dayflareOP•5mo ago
possibly lemme delete the lock file and generate a new one actually no, the lock file is in gitignore
Brody
Brody•5mo ago
that's not ideal
dayflare
dayflareOP•5mo ago
i just got this error oh wait nevermind i managed to fix it it was the ts version using ^ instead of ~ damn thing
Brody
Brody•5mo ago
perfect
dayflare
dayflareOP•5mo ago
ty for ur help
Brody
Brody•5mo ago
you still wanna be using a lock file though
dayflare
dayflareOP•5mo ago
ah alright
Want results from more Discord servers?
Add your server