This is a minimal reproduction of issue cloudflare/workers-sdk#6224.
Run corepack enable
to be sure to have the correct version of pnpm installed.
Run pnpm reproduce
This will install node modules, build the website, and try to deploy it.
Note: You will likely need to authenticate and create a new pages project.
When the command finishes, you should get an error like this:
✘ [ERROR] ENOENT: no such file or directory, scandir '/Users/ianvs/code/experiments/cloudflare-pnpm-repro/build'