R
Railway•3mo ago
Sid

Build fails with: ts-node: not found

My build is failing with the error that it cannot find ts-node I have checked a previous thread and it hasn't helped, some extra info: - ts-node is only used in building the app - ts-node is declared as a dependency, not a dev dependency - I have no railway.config file
No description
30 Replies
Percy
Percy•3mo ago
Project ID: aa4accc0-a714-470d-98af-7b29e22282d9
Sid
SidOP•3mo ago
aa4accc0-a714-470d-98af-7b29e22282d9 I've confirmed it works locally by running nixpacks and starting the container It's just on the railway platform that it's crashing due to not finding ts-node Any support would be appreciated
Brody
Brody•3mo ago
how have you verified that ts-node is being installed?
Sid
SidOP•3mo ago
How can I verify that on a build on railway? It's in my dependencies and it works locally
Brody
Brody•3mo ago
verbose mode for npm ci maybe
Sid
SidOP•3mo ago
What would the fix be for this given it's already in my dependencies?
Brody
Brody•3mo ago
first we need to find out if it's being installed
Sid
SidOP•3mo ago
Why wouldn't it be, though? I don't get an NPM error
Brody
Brody•3mo ago
I'm sorry I don't have all these answers, you're going to have to dig into this and debug it
Sid
SidOP•3mo ago
I'm going to assume that wouldn't be the case Because it doesn't make sense given it's in my dependencies + I would see an NPM install error
Brody
Brody•3mo ago
something is misconfigured somehow, you are going to need to debug this
Sid
SidOP•3mo ago
Any support line for paying customers?
Brody
Brody•3mo ago
unfortunately we can't offer in depth support for application level issues for users on the Hobby plan
Sid
SidOP•3mo ago
Im on pro
Brody
Brody•3mo ago
you are not according to my admin dashboard
Sid
SidOP•3mo ago
alternatively, can I get a refund?
Sid
SidOP•3mo ago
No description
Sid
SidOP•3mo ago
Or if you allow deployments without using docker containers / nixpacks?
Brody
Brody•3mo ago
then that's a different account, the railway account connected to this discord account is not a part of any teams
Sid
SidOP•3mo ago
Correct, this is on behalf of a client
Brody
Brody•3mo ago
yes, you can request that from within your billing page railway is a containerized environment have you tried adding verbose mode to the install command?
Sid
SidOP•3mo ago
no I haven't
Brody
Brody•3mo ago
I'm sorry but I don't have the magical answer for you, all I can do is help you debug this
Sid
SidOP•3mo ago
If I find out that it isn't being installed, what would I do? Might be quicker just to do that and see if it works
Brody
Brody•3mo ago
I don't know yet, that's not how debugging works 😆
Sid
SidOP•3mo ago
That's the issue If it is the case that one package isn't being installed even though it's in my deps, then it's an unlikely fix Thanks anyway, i'm going to move to a non-containerized platform
Brody
Brody•3mo ago
I wasn't saying it's going to fix anything, this is what debugging is about, gathering more information to help make further decisions. but you do what's right for you in the end.
Sid
SidOP•3mo ago
Right
jeremy
jeremy•3mo ago
Maybe ts-node is a devDep and you are using npm in production, so devDep are not installed?
Sid
SidOP•3mo ago
It was a normal dependency No idea why it didn't work I recollect having the issue before with tsx but couldn't remember the fix
Want results from more Discord servers?
Add your server