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