[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When building angular app with their new build system
application
that is using vite i am getting following errorWhile it is error in angular app, i tracked it down to vite repository:
https://github.com/vitejs/vite/blob/c1ed8a595a02ec7f8f5a8d23f97b2f21d3834ab1/packages/vite/src/node/server/index.ts#L1058
Reproduction
https://stackblitz.com/edit/stackblitz-starters-zk4gna
Steps to reproduce
It is not possible to reproduce in stackblitz because it does not support yarn pnp.
ng new
.yarnrc.yml
yarn
yarn start
System Info
Used Package Manager
yarn
Logs
No response
Validations