Describe the bug
Upgraded my tanstack vite app using nitro to vite 8.0.0-beta.9 and now build fails
Seems related to vite beta 9 and the nitro plugin?
Reproduction
https://github.com/JClackett/vite9beta
Steps to reproduce
bun install
bun run build
System Info
System:
OS: macOS 26.2
CPU: (8) arm64 Apple M1 Pro
Memory: 2.01 GB / 32.00 GB
Shell: 3.7.1 - /opt/homebrew/bin/fish
Binaries:
Node: 22.21.0 - /Users/jclackett/.local/state/fnm_multishells/54665_1769095308972/bin/node
npm: 10.9.4 - /Users/jclackett/.local/state/fnm_multishells/54665_1769095308972/bin/npm
pnpm: 10.14.0 - /opt/homebrew/bin/pnpm
bun: 1.3.5 - /opt/homebrew/bin/bun
Browsers:
Chrome: 143.0.7499.194
Safari: 26.2
npmPackages:
@vitejs/plugin-react: ^5.0.4 => 5.1.2
vite: 8.0.0-beta.9 => 8.0.0-beta.9
Used Package Manager
bun
Logs
Click to expand!
✓ built in 276ms
vite v8.0.0-beta.9 building ssr environment for production...
`inlineDynamicImports` option is deprecated, please use `codeSplitting: false` instead.
[@tanstack/devtools-vite] Removed devtools code from: /src/routes/__root.tsx
✓ 67 modules transformed.
✗ Build failed in 142ms
error during build:
Build failed with 1 error:
[plugin nitro:main]
TypeError: Cannot redefine property: viteMetadata
at Function.defineProperty (<anonymous>)
at injectChunkMetadata (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/chunks/node.js:34619:9)
at PluginContextImpl.handler (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/chunks/node.js:34608:75)
at PluginContextImpl.handler (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/chunks/node.js:34610:13)
at plugin (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs:1373:18)
at plugin.<computed> (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs:1652:18)
at aggregateBindingErrorsIntoJsError (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs:621:18)
at unwrapBindingResult (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs:591:128)
at #build (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs:2360:34)
at async buildEnvironment (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/chunks/node.js:34375:64)
at async Object.build (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/chunks/node.js:34774:19)
at async Object.buildApp (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/@tanstack/start-plugin-core/dist/esm/plugin.js:260:17)
at async Object.buildApp (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/chunks/node.js:34766:6)
at async CAC.<anonymous> (file:///Users/jclackett/Apps/Examples/vite9beta/node_modules/vite/dist/node/cli.js:630:3)
Validations
Describe the bug
Upgraded my tanstack vite app using nitro to vite
8.0.0-beta.9and now build failsSeems related to vite beta 9 and the nitro plugin?
Reproduction
https://github.com/JClackett/vite9beta
Steps to reproduce
bun installbun run buildSystem Info
System: OS: macOS 26.2 CPU: (8) arm64 Apple M1 Pro Memory: 2.01 GB / 32.00 GB Shell: 3.7.1 - /opt/homebrew/bin/fish Binaries: Node: 22.21.0 - /Users/jclackett/.local/state/fnm_multishells/54665_1769095308972/bin/node npm: 10.9.4 - /Users/jclackett/.local/state/fnm_multishells/54665_1769095308972/bin/npm pnpm: 10.14.0 - /opt/homebrew/bin/pnpm bun: 1.3.5 - /opt/homebrew/bin/bun Browsers: Chrome: 143.0.7499.194 Safari: 26.2 npmPackages: @vitejs/plugin-react: ^5.0.4 => 5.1.2 vite: 8.0.0-beta.9 => 8.0.0-beta.9Used Package Manager
bun
Logs
Click to expand!
Validations