Error deploying Turborepo project with a fastify workspace

Hi @Brody, i'm using the a template repo that is similarly used by @ar and i did update the script in package.json and apparently i am getting this issue on the build step
No description
No description
No description
Solution:
railway is using pnpm 7 something, you should be able to set the pnpm version as shown here https://nixpacks.com/docs/providers/node#corepack
Jump to solution
18 Replies
Percy
Percy3mo ago
Project ID: ccd1c691-fdc5-413c-b132-bd6dc13c8ab6
ibrahimyaacob
ibrahimyaacob3mo ago
ccd1c691-fdc5-413c-b132-bd6dc13c8ab6
Brody
Brody3mo ago
please provide your build logs with that bookmarklet I gave you
ibrahimyaacob
ibrahimyaacob3mo ago
GitHub
GitHub - ibrahimyaacob92/turborepo-next-trpc
Contribute to ibrahimyaacob92/turborepo-next-trpc development by creating an account on GitHub.
ibrahimyaacob
ibrahimyaacob3mo ago
code is up to date
Brody
Brody3mo ago
you are missing a pnpm-lock.yaml file well scratch that, the build thinks you are missing a pnpm-lock.yaml file, but it's in your repo have you modified the root directory of your service? what version of pnpm do you use locally?
ibrahimyaacob
ibrahimyaacob3mo ago
no i have not modified the root directory. and my pnpm version is 8.9.2
Solution
Brody
Brody3mo ago
railway is using pnpm 7 something, you should be able to set the pnpm version as shown here https://nixpacks.com/docs/providers/node#corepack
ibrahimyaacob
ibrahimyaacob3mo ago
so i change it to my current version
Brody
Brody3mo ago
yep
ibrahimyaacob
ibrahimyaacob3mo ago
okay the build & deployment works now! thank you @Brody . but now im getting new error, cant view the app https://turborepo-next-trpc-production.up.railway.app/
No description
ibrahimyaacob
ibrahimyaacob3mo ago
i checked the help section and found answer where i need to use env.PORT and env.HOST from railway, i swear the template already have this value in places
No description
Brody
Brody3mo ago
don't use a HOST variable, I'm not sure where you read that but it's incorrect. you app only needs to listen on 0.0.0.0 and $PORT
ibrahimyaacob
ibrahimyaacob3mo ago
alhamdulillah it works @Brody
Brody
Brody3mo ago
awesome
ibrahimyaacob
ibrahimyaacob3mo ago
thank you for going thru this with me
Brody
Brody3mo ago
happy to help
Want results from more Discord servers?
Add your server
More Posts