Build fails with: ts-node: not found

sid-turner-ellisHOBBY

8 months ago

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

0 Replies

sid-turner-ellisHOBBY

8 months ago

aa4accc0-a714-470d-98af-7b29e22282d9


sid-turner-ellisHOBBY

8 months ago

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


sid-turner-ellisHOBBY

8 months ago

Any support would be appreciated


8 months ago

how have you verified that ts-node is being installed?


sid-turner-ellisHOBBY

8 months ago

How can I verify that on a build on railway?


sid-turner-ellisHOBBY

8 months ago

It's in my dependencies and it works locally


8 months ago

verbose mode for npm ci maybe


sid-turner-ellisHOBBY

8 months ago

What would the fix be for this given it's already in my dependencies?


8 months ago

first we need to find out if it's being installed


sid-turner-ellisHOBBY

8 months ago

Why wouldn't it be, though?


sid-turner-ellisHOBBY

8 months ago

I don't get an NPM error


8 months ago

I'm sorry I don't have all these answers, you're going to have to dig into this and debug it


sid-turner-ellisHOBBY

8 months ago

I'm going to assume that wouldn't be the case


sid-turner-ellisHOBBY

8 months ago

Because it doesn't make sense given it's in my dependencies + I would see an NPM install error


8 months ago

something is misconfigured somehow, you are going to need to debug this


sid-turner-ellisHOBBY

8 months ago

Any support line for paying customers?


8 months ago

unfortunately we can't offer in depth support for application level issues for users on the Hobby plan


sid-turner-ellisHOBBY

8 months ago

Im on pro


8 months ago

you are not according to my admin dashboard


sid-turner-ellisHOBBY

8 months ago

alternatively, can I get a refund?


sid-turner-ellisHOBBY

8 months ago

1283070761463971800


sid-turner-ellisHOBBY

8 months ago

Or if you allow deployments without using docker containers / nixpacks?


8 months ago

then that's a different account, the railway account connected to this discord account is not a part of any teams


sid-turner-ellisHOBBY

8 months ago

Correct, this is on behalf of a client


8 months ago

yes, you can request that from within your billing page


8 months ago

railway is a containerized environment


8 months ago

have you tried adding verbose mode to the install command?


sid-turner-ellisHOBBY

8 months ago

no I haven't


8 months ago

I'm sorry but I don't have the magical answer for you, all I can do is help you debug this


sid-turner-ellisHOBBY

8 months ago

If I find out that it isn't being installed, what would I do?


sid-turner-ellisHOBBY

8 months ago

Might be quicker just to do that and see if it works


8 months ago

I don't know yet, that's not how debugging works 😆


sid-turner-ellisHOBBY

8 months ago

That's the issue


sid-turner-ellisHOBBY

8 months ago

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


sid-turner-ellisHOBBY

8 months ago

Thanks anyway, i'm going to move to a non-containerized platform


8 months 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-turner-ellisHOBBY

8 months ago

Right


8 months ago

Maybe ts-node is a devDep and you are using npm in production, so devDep are not installed?


sid-turner-ellisHOBBY

8 months ago

It was a normal dependency


sid-turner-ellisHOBBY

8 months ago

No idea why it didn't work


sid-turner-ellisHOBBY

8 months ago

I recollect having the issue before with tsx but couldn't remember the fix


Build fails with: ts-node: not found - Railway Help Station