First deployment always fails but second is successful

Hi everyone,

We are experiencing a weird error when deploying apps developed in a monorepo built with Turborepo. Whenever we deploy this apps, we have to redeploy them every time because the first of the deployments fails. The error is always the same: a reference error to a css from a package is not found in this first deployment but doesn’t arise when redeploying it. This css is generated executing a script using Tailwind.

This script executes in the building process every time (I verified this in the logs). We also tried to set the no-cache flag for Vercel (VERCEL_FORCE_NO_BUILD_CACHE), but still didn’t solve the issue. Does anyone know why this could happen?

Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.