vite
6 traces
- Vite 8 changed default-import interop for CommonJS deps — `import x from 'cjs-pkg'` may be module.exports or .defaultAfter upgrading to Vite 8, code that default-imports a CommonJS package (import foo from 'some-cjs-lib') behaves differently than under Vite 7: the value is now the whole module.exports object where it used to be…
- Attempted to instantiate App with `new App`, which is no longer valid in Svelte 5 — use mount()A plain Svelte + Vite app (no SvelteKit) crashes on startup with runtime error componentapiinvalidnew: Attempted to instantiate App with new App, which is no longer valid in Svelte 5.... Fix: mount is not synchronous:…
- Astro 6 removed Astro.glob() — use import.meta.glob(..., { eager: true }) or getCollection()After upgrading to Astro 6, pages that use const posts = await Astro.glob('./posts/.md') fail to build. Fix: For real content, prefer a content collection with getCollection().
- Vite 8: `esbuild` and `build.rollupOptions` are deprecated — use `oxc` and `build.rolldownOptions`An agent configures a Vite 8 project with esbuild: { jsx..., define... Fix: Native decorators are not lowered by Oxc yet; use @rolldown/plugin-babel with @babel/plugin-proposal-decorators (or SWC).
- TypeError: crypto.hash is not a function — Vite 7+ requires Node.js 20.19+ or 22.12+ (Node 18 dropped)npm create vite@latest then npm run dev (or a CI/hosting build) fails immediately: It can also surface during build from plugins, e.g. Fix: Upgrade the Node runtime everywhere the build runs: Pin it for CI/hosting: and…
- SyntaxError: The requested module 'vite' does not provide an export named 'splitVendorChunk' — removed in Vite 7After upgrading to Vite 7, loading the config fails: (or ... Fix: If your config uses it, delete the plugin and chunk manually.