Error: Exit with error code: 1

Hi, I have an error I am trying to fix on multiple projects, pretty weird 🥲 . Deployment ID : a134533e-ac9d-401d-a20a-34123f0e89ce Account ID : 21e9ae27ead3db5bee08ae888a6119e4 The project is agency-landing-page and it's on the deploy/cloudflare branch. Thanks in advance ! 😍
6 Replies
Renova
Renova9mo ago
I use the edge runtime and everything compiles locally (I know it doesn't mean much)
Erisa
Erisa9mo ago
You're using yarn 1 lockfile but Pages defaults to yarn 3, try setting YARN_VERSION to 1 in the project environment variables
Renova
Renova9mo ago
That was it, thanks 😱 First time I have a problem with a lockfile, can I upgrade to version 3 ? You saved my day!
Erisa
Erisa9mo ago
Step-by-step | Yarn
A step-by-step and in-depth migration guide from Yarn 1 (Classic) to Yarn 2 (Berry).
Erisa
Erisa9mo ago
The embed says to 2 but I believe the same applies for moving to 3, maybe the commands are slightly different? Not something I've actively done honestly
Renova
Renova9mo ago
Thanks a lot, I didn’t know where to start ! ❤️ You fixed all my project which had this issue, thanks a lot !!! 🤩 I just upgraded to latest Yarn and it works like a charm
Want results from more Discord servers?
Add your server