Vite processes stuck when using @rollup/plugin-node-resolve
on Windows VMs
#19430
Closed
7 tasks done
Labels
Describe the bug
I typically develop on macOS, and have been working on an app that looks something like this reproduction: https://github.com/stephenlrandall/vite-resolve-test.
The heart of the issue seems to come from components stored outside the root of the project, but that wish to reference dependencies stored in the project. For example, this component references
mathjs
, which is in the mainapp/node_modules
. This component is referenced through the$external
alias. Normally, Vite wouldn't be able to resolve the import inComponent.svelte
, but with@rollup/plugin-node-resolve
I can add a plugin to Vite that allows it to correctly resolve the import:plugins: [ sveltekit(), + nodeResolve({ modulePaths: [path.resolve('./node_modules')] }) ],
This all works fine, until I move to Windows. (It actually also seems to work on normal Windows systems, but not on Windows VMs.) At this point I run into hanging processes for both
dev
andbuild
. (See attached logs.) I've found similar issues across the internet (the most active was https://community.cloudflare.com/t/vite-stuck-in-build/696830, although that seems like a different case and more reliably reproducible).Reproduction
https://github.com/stephenlrandall/vite-resolve-test
Steps to reproduce
From the
app/
folder, install the dependencies and try running eithernpm run dev
ornpm run build
.System Info
Used Package Manager
npm
Logs
During dev
During build
(The exact display line changes each time, but it's getting stuck right at the end of the transformation process.)
Validations
The text was updated successfully, but these errors were encountered: