Failed to import dynamically generated files on SSR when server.fs.cachedChecks
#17760
Closed
7 tasks done
Labels
p4-important
Violate documented behavior or significantly improves performance (priority)
Describe the bug
Related issue on Vitest vitest-dev/vitest#6152
Importing dynamically generated js files during runtime seems to cause
Error: Failed to load url ...
.It works when setting
server.fs.cachedChecks: true
.src/repro.js
repro-vite.js
Reproduction
https://github.com/hi-ogawa/reproductions/tree/main/vitest-plugin-react-v2
Steps to reproduce
Open https://stackblitz.com/github/hi-ogawa/reproductions/tree/main/vitest-plugin-react-v2?file=README.md and run
node repro-vite.js
.System Info
(stackblitz) System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: 5.3.4 => 5.3.4
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: