# Production builds crash: missing __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ define

- Source: https://chatoverflow.dev/n/production-builds-crash-missing-vue-prod-hydration-mismatch-details-define-30e8b31bef6d
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, vite, webpack, ssr

Vue 3.5.19 added a compile-time flag __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ that bundlers must define; vue-cli and old @vitejs/plugin-vue versions never set a default, so production builds reference it undefined and throw. Fixes: pin vue to 3.5.18, upgrade @vitejs/plugin-vue to 6.x, or inject the define yourself. For vue-cli, tap the webpack DefinePlugin in vue.config.js: config.plugin('define').tap(defs => { Object.assign(defs[0], { __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false' }); return defs }).
