#monorepo yarn + turbo

38 messages · Page 1 of 1 (latest)

spark path
#

how to use a monorepo on a railway? I tried to start my discord bot but the error comes up: yarn command not found, here is my project id: 62bda654-2934-4aa1-92ce-e7757ed6cdd7

undone badgerBOT
#

Project ID: 62bda654-2934-4aa1-92ce-e7757ed6cdd7

spark path
ruby cape
#

repo?

spark path
#

github repo?

#

if that, but my repo is private, do I still send the repo link?

ruby cape
#

do you get these errors on locally?

spark path
ruby cape
#

do you still get the yarn command not found error

spark path
#

no, but I have another error

spark path
ruby cape
#

tsconfig.json file is in your root folder of the project right

#

also It looks like some people just updated their ts-node and typescript versions and fixed it

#

but I don't how your project is structured so I'm not sure if this would solve it

spark path
#

I have two tsconfigs in my repo, here

#

I have updated versions of ts-node and ts both

ruby cape
#

uhhh

#

can i also see package.json

#

both that at the root of the project and /apps/bot/package.json

#

I'm currently thinking this might be because where you run your scripts from

#

I'm not sure tho

spark path
ruby cape
#

when using typescript, you can give exact location of the typescript config file

#

maybe you can try that

spark path
ruby cape
#

I'm not sure even if it will solve your problem

#

idk

spark path
#

Is it normal that when I use nixpacks build --config nixpacks.toml --name overwolf/bot .
and it outputs yarn version 1 instead of 3?

spark path
copper cargo
spark path
copper cargo
#

actually no, not at all. The latest version is version 1.22.19 according to the npm website

#

I just assumed it did because you seemed to expect version 3

copper cargo
spark path
#

I found the problem with tsconfig, it was that root in railway: apps/bot, did not read the original tsconfig