This is a demo project to show how Vite build breaks when there is a broken symlink in the project.
- Clone this repository
- Run
npm install
- Run
npm run build
- See the error
This happens because the copyDir
utility in Vite does not handle broken symlinks properly when inside of public
. It tries to copy the broken symlink and fails.