Build with typescript errors

hey! How could I make the build proceed regardless of type errors? I get this whenever there's one: ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 2 Error: Docker build failed *tsc is emitting on error
Solution:
yep nothing to do specifically with the railway platform, you'd need to research how you'd turn off these warnings being treated as fatal when building for production
Jump to solution
12 Replies
Percy
Percy6mo ago
Project ID: N/A
Brody
Brody6mo ago
I assume you don't want to fix the type errors?
Vulgaris Magistralis
yes, i do not
Brody
Brody6mo ago
configure your tsconfig to not care?
Vulgaris Magistralis
i am converting a project to ts, the errors are obviously useful do i just have to deploy with another config then?
Brody
Brody6mo ago
respectfully, type errors wouldn't have anything to do with railway, you would find better help for this on previously answered stack overflow answers
Vulgaris Magistralis
Yeah hoenstly i did not want help with the typeerros but just the abillity to deploy regardless of them, as tsc will build
Brody
Brody6mo ago
I know you didn't ask for help with the errors themselves, but configuring the build to ignore type errors wouldn't have much if anything to do with railway
Vulgaris Magistralis
Ok I might have assumed wrong then, was assuming the build working on my end and emitting with errors means it's something about the way it's configured on railway
Solution
Brody
Brody6mo ago
yep nothing to do specifically with the railway platform, you'd need to research how you'd turn off these warnings being treated as fatal when building for production
Brody
Brody6mo ago
there's even a good chance the logs tell you exactly how to do that
Vulgaris Magistralis
Sure, thank you
Want results from more Discord servers?
Add your server