monorepo yarn + turbo

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
22 Replies
Percy
Percy2y ago
Project ID: 62bda654-2934-4aa1-92ce-e7757ed6cdd7
Starr Rossa
Starr RossaOP2y ago
I now have another error: https://srcb.in/DY4I0KidWm
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
github repo? if that, but my repo is private, do I still send the repo link? bot start-up logs: https://srcb.in/kx6oqCH0HD
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
no, this is the strange thing
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
no, but I have another error now this error appears
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
I have two tsconfigs in my repo, here
Starr Rossa
Starr RossaOP2y ago
I have updated versions of ts-node and ts both
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
OK, here are both package.json: bot: https://srcb.in/2vCTNS7qK4 main: https://srcb.in/sQXJqNXcsF
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
what do you mean by exact location of the typescript config file?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Starr Rossa
Starr RossaOP2y ago
Is it normal that when I use nixpacks build --config nixpacks.toml --name overwolf/bot . and it outputs yarn version 1 instead of 3? here my config nixpacks:
[phases.setup]
nixPkgs = ["nodejs-18_x", "yarn-1_x", "python39", "gccStdenv"]

[phase.name]
aptPkgs = [
"build-essential",
"libcairo2-dev",
"libpango1.0-dev",
"libjpeg-dev",
"libgif-dev",
"librsvg2-dev",
]

[phases.install]
cmds = ["yarn install --check-cache"]

[start]
cmd = "yarn run start"
[phases.setup]
nixPkgs = ["nodejs-18_x", "yarn-1_x", "python39", "gccStdenv"]

[phase.name]
aptPkgs = [
"build-essential",
"libcairo2-dev",
"libpango1.0-dev",
"libjpeg-dev",
"libgif-dev",
"librsvg2-dev",
]

[phases.install]
cmds = ["yarn install --check-cache"]

[start]
cmd = "yarn run start"
Adam
Adam2y ago
You’re specifying yarn v1 in your setup phase, you can change the 1 to a 3 to get yarn v3
Starr Rossa
Starr RossaOP2y ago
Are you sure this version can be included?
Adam
Adam2y ago
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 In that case, what did you mean by this?
Starr Rossa
Starr RossaOP2y ago
I found the problem with tsconfig, it was that root in railway: apps/bot, did not read the original tsconfig However, I did it another way
Want results from more Discord servers?
Add your server