-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno / Node(Vite?) issue - Uncaught Error: EINVAL: invalid argument, stat #19067
Comments
That might be related to denoland/rusty_v8#1226 |
Got the same issue. |
Yep same here :( |
Same here in deno 1.33.3 & v8 11.4.183.2 |
I have the very same problem on windows 10:
|
Thanks for the reports, I will debug and fix it for Deno v1.33.4. |
As a work around you can downgrade Vite to 4.2.0 in the meantime. See linked Vite issue above for more details. |
vite@4.3.7 should fix this issue, thanks for the heads up @bartlomieju |
I'm gonna close this issue for now. Let me know if the problem appears again. |
The bug still exists (Deno 1.42.4) Downgrading to Vite 4.2.0 fixed it for me. |
To me it seems like Deno behaves differently than Node when the file path is malformed. I was able to use vite@^5.0.0 when I ensured to inject my own loader (which is using paths with custom url schemes) before vite tries to resolve the import using the default fs loader. |
In libuv on windows, `ERROR_INVALID_NAME` is mapped to `ENOENT`, but it is mapped to `EINVAL` in our compat implementation, which causes the issue #24899. ref: https://github.com/libuv/libuv/blob/d4ab6fbba4669935a6bc23645372dfe4ac29ab39/src/win/error.c#L138 closes #24899 closes #26411 closes #23635 closes #21165 closes #19067
👋
Attempted to try to start a project today with create-vite-extra. Initially ran into an issue with esbuild that required an upgrade to Deno. However, after doing so, I am still having trouble.
It was suggested that I open the issue here so here I am.
The issue is essentially:
deno run -A npm:create-vite-extra
deno task dev
I get the following error
v18.16.0
The text was updated successfully, but these errors were encountered: