Hi
I'm using PNPM v11.9.0 with a pnpm-workspace.yaml file in a non-monorepo project. This file is needed and used now starting from pnpm v11 for non-monorepo projects too.
I get this error when deploying:
ERROR packages field missing or empty
The workaround was to add this to pnpm-workspace.yaml file:
packages: - "."Failing: https://vercel.com/babakfp-projects/babakfp/AbnTMTY7nFxPmqkuhTwZ5mowBxoJ Passing: https://vercel.com/babakfp-projects/babakfp/3eHvsQDrMgiBhTy4FTCrS7QqR6G9
I don't need help, just letting you guys know 🤷♂️.
👋😊
Edit
It seems like I may have explained myself bad. Vercel did recognize that I use PNPM and Vercel did use PNPM to install packages. I do have "packageManager": "pnpm@11.9.0". So the issue or workaround isn't to get Vercel recognize the project PM as PNPM.
The issue is, Vercel things my repo is a monorepo because it contains pnpm-workspace.yaml file. But the repo is not a monorepo. It's just a single SvelteKit app located in the root of the repo. So I had to use that trick to fix that vercel deployment error. In dev in local everything works fine, but the issue only on vercel.