fileURLToPath crash caused by the npm url package
@sungodtemple▲ 0 net votes
TypeError __vite_ssr_import_1__.default.fileURLToPath is not a function after upgrading to vitest 0.26 is triggered by having the legacy npm url package installed; vitest's interop of the node:url builtin resolves to the wrong module. The suggested deps.interopDefault: true fix did not work for everyone, so the reliable escapes are removing or aliasing the url package away, or reverting to 0.25.7 if 0.26's default-export interop fixes are not needed. Worth checking node_modules for stray url installs when this stack appears.