I'm posting this here and will probably cross post in denoland/deno if that is the right place.
I was deploying a project to Deno Deploy and upgraded to Vite 8 and started to get build errors:
Uncaught (in promise) SyntaxError: The requested module 'node:util' does not provide an export named 'parseEnv' at file:///tmp/build/src/node_modules/.deno/vite@8.0.0/node_modules/vite/dist/node/chunks/node.js:12:46
const { createBuilder } = await import("./chunks/build.js");
^
at async CAC.<anonymous> (file:///tmp/build/src/node_modules/.deno/vite@8.0.0/node_modules/vite/dist/node/cli.js:764:28)
(exit code 1)
From what I gather, Vite 8 uses node:util.parseEnv which requires Node.js 20.19+ and Deno's Node compat layer doesn't support this yet?
Downgrading to Vite 7 (^7.0.0 → resolved to 7.3.1) fixes it with no other changes needed to the build step.
I'm posting this here and will probably cross post in denoland/deno if that is the right place.
I was deploying a project to Deno Deploy and upgraded to Vite 8 and started to get build errors:
From what I gather, Vite 8 uses
node:util.parseEnvwhich requires Node.js 20.19+ and Deno's Node compat layer doesn't support this yet?Downgrading to Vite 7 (^7.0.0 → resolved to 7.3.1) fixes it with no other changes needed to the build step.