Turborepo + Vercel + Github Actions: ENOENT: no such file or directory

This error means it can’t find the file, and most likely it means it can’t find any node_modules

If you are passing .vercel and .next to the deploy layer, you’ll need to either

  • install modules in the deploy layer
  • or pass node_modules from build into the deploy layer