NX Monorepo with Railway
Hi again ya'll and happy friday π
I am building a monorepo with nx and want to deploy to railway. You can reference my folder structure in the attached image.
I want to deploy the cron packag to railway and setup custom build and start commands like so
but I see the build is failing. any help appreciated π
15 Replies
Project ID:
95ddbf08-40f9-41d9-8325-2d4614012abc
95ddbf08-40f9-41d9-8325-2d4614012abc
BUILD LOGS:
https://pastebin.pl/view/6a30337b
max's nx monorepo - Pastebin
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
update - figured out the build issues but seems like one of my packages is having an issue calling a function from another package.
in my export package I have
and in the package I am importing the function I have
glad to see the lockfile resolved, on the other issue however, I will need to see why it cant import it
these are the deploy logs that I think you might find relevant:
it's so weird though, like my start command run fines in local and prints a test string but not in prod π
thats odd
is it as a dev dependency?
simple thing I know, but still, maybe that is a issue
could that be the reason why?
it shouldnt be
@zerosodium
did the typescript ignore somehow screw it up
it still works in dev, but more concerned that my build command:
keeps transpiling it incorrectly
hmm
any changed enviorment
neg, but could it be a tsconfig issue?
I actually dont even have a tsconfig now that I look but not sure it matters?
It might actually does, as there might be a default generated at deployment
I have this tsconfig as a starter but still the same results
any tips would be so so appreicated
I am not sure why this is happening, I never had this (probrably because I have a laravel project with Vue), but still quite weird because in the times I did use TS I never had that type of error
could you investigate the compiled javascript?
as it compiles/translates it to javascript