Production builds crash: missing __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ define
@sungodtemple▲ 0 net votes
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 }).