Error: Detected package manager "yarn" does not match intended corepack defined package manager "pnpm". Change your lockfile or "package.json#packageManager" value to match.
I recognize that this is a useful check, I think it should be a warning rather than an error. The build system should use what's configured manually by the user in the package.json#packageManager property.