a year 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
41 Replies
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
a year ago
how have you verified that ts-node is being installed?
a year ago
verbose mode for npm ci maybe
What would the fix be for this given it's already in my dependencies?
a year ago
first we need to find out if it's being installed
a year ago
I'm sorry I don't have all these answers, you're going to have to dig into this and debug it
Because it doesn't make sense given it's in my dependencies + I would see an NPM install error
a year ago
something is misconfigured somehow, you are going to need to debug this
a year ago
unfortunately we can't offer in depth support for application level issues for users on the Hobby plan
a year ago
you are not according to my admin dashboard
Or if you allow deployments without using docker containers / nixpacks?
a year ago
then that's a different account, the railway account connected to this discord account is not a part of any teams
a year ago
yes, you can request that from within your billing page
a year ago
railway is a containerized environment
a year ago
have you tried adding verbose mode to the install command?
a year ago
I'm sorry but I don't have the magical answer for you, all I can do is help you debug this
a year ago
I don't know yet, that's not how debugging works 😆
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
a year 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.
a year ago
Maybe ts-node is a devDep and you are using npm in production, so devDep are not installed?
I recollect having the issue before with tsx but couldn't remember the fix
