Typescript errors I can't replicate on my own environment

hey! trying to deploy my node app written in typescript but it's failing and i'm getting odd typescript error that don't make sense on my end. i'm assuming railway isn't using my typescript config as my build works locally, is there a way to replicate it and try to solve problems on my local version instead of redeploying in hopes of solving it? thanks!
Solution:
Yeah it was the problem, library i installed was wrongly typed and like a moron i changed it to any on the node_modules type, anyway it's sorted, thank you
Jump to solution
13 Replies
Percy
Percy3mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Brody
Brody3mo ago
first off, is the version of node that you run locally the same on railway?
Percy
Percy3mo ago
No project ID was provided. Closing thread.
Vulgaris Magistralis
based on this: ╔═════════ Nixpacks v1.28.1 ════════╗ ║ setup │ nodejs_18, npm-9_x ║ ║───────────────────────────────────║ i'm assuming it uses 18, i applied it and its still working well locally
Brody
Brody3mo ago
and you are using node 18 locally too?
Vulgaris Magistralis
yes, right now i do
Brody
Brody3mo ago
to try to reproduce locally, have you tried deleting your project and doing a fresh clone? then running through setup, npm ci, npm build, npm start, etc
Vulgaris Magistralis
do you mean just cloning it off github again and building it? ill give it a go, but as far as the tsconfig, is it using mine or is the setting it is using specified anywhere?
Brody
Brody3mo ago
its yours, railway runs your project as-is unlike vercel
do you mean just cloning it off github again and building it?
yes but specifically install deps from a frozen lock file
Vulgaris Magistralis
ok i just cloned it but it seemed to do the job, i'm seeing the same errors on my editor now and some parameter that used to be "any" now have a type, would love to know why it's hapening could it came from messing with a type file that is inside of node_Modules that was downloaded cleanly by railway? i'm guessing thats it anyways, thanks you
Brody
Brody3mo ago
I'm sorry but i couldnt begin to tell you why
Solution
Vulgaris Magistralis
Yeah it was the problem, library i installed was wrongly typed and like a moron i changed it to any on the node_modules type, anyway it's sorted, thank you
Brody
Brody3mo ago
no problem!
Want results from more Discord servers?
Add your server