Describe the bug
After upgrading to Vite 8.0.14 (from 8.0.13), dev servers (vite) immediately fails in the browser with init_emotion_react_browser_development_esm - no stack trace. Disabling codeSplitting or downgrading to 8.0.13 resolves the issue.
A similar issue has been reported in Rolldown: rolldown/rolldown#9502
This is presumably related to our use of MaterialUI v5, which includes @emotion/react.
Reproduction
WIP
Steps to reproduce
On Vite 8.0.14 with @mui/material v5 and react >18 installed:
- Run
vite dev
- Observe errors in browser logs
System Info
System:
OS: macOS 26.3
CPU: (12) arm64 Apple M2 Pro
Memory: 106.17 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.14.1 -
npm: 11.11.0 -
pnpm: 11.1.2 -
Browsers:
Chrome: 148.0.7778.179
Firefox: 150.0.2
Safari: 26.3
Used Package Manager
pnpm
Logs
Terminal
➜ pnpm vite dev
11:34:34 AM [vite] (client) Forced re-optimization of dependencies
VITE v8.0.14 ready in 249 ms
➜ Local: http://localhost:5173/app
➜ Network: use --host to expose
➜ press h + enter to show help
11:34:36 AM [vite] (client) [optimizer] bundling dependencies...
Browser
Uncaught ReferenceError: init_emotion_react_browser_development_esm is not defined
at styles-Cj2gy6ID.js?v=84bd8baf:633:1
Validations
Describe the bug
After upgrading to Vite 8.0.14 (from 8.0.13), dev servers (
vite) immediately fails in the browser withinit_emotion_react_browser_development_esm- no stack trace. DisablingcodeSplittingor downgrading to 8.0.13 resolves the issue.A similar issue has been reported in Rolldown: rolldown/rolldown#9502
This is presumably related to our use of MaterialUI v5, which includes
@emotion/react.Reproduction
WIP
Steps to reproduce
On Vite 8.0.14 with
@mui/materialv5 andreact>18 installed:vite devSystem Info
System: OS: macOS 26.3 CPU: (12) arm64 Apple M2 Pro Memory: 106.17 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.1 - npm: 11.11.0 - pnpm: 11.1.2 - Browsers: Chrome: 148.0.7778.179 Firefox: 150.0.2 Safari: 26.3Used Package Manager
pnpm
Logs
Terminal
Browser
Validations