Closed
Description
Describe the bug
The file is removed, but it's still referenced in the SSR build, which will cause ERR_MODULE_NOT_FOUND when executing it

Reproduction
https://github.com/meteorlxy/vite-5-2-12-repro
Steps to reproduce
Check the reproduce repo
System Info
System:
OS: macOS 14.4
CPU: (10) arm64 Apple M1 Pro
Memory: 62.78 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/Library/Caches/fnm_multishells/10557_1717167804709/bin/node
npm: 10.5.0 - ~/Library/Caches/fnm_multishells/10557_1717167804709/bin/npm
pnpm: 9.1.4 - ~/Library/Caches/fnm_multishells/10557_1717167804709/bin/pnpm
Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 125.0.6422.113
Safari: 17.4
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- 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.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.