From 3adfb6cb7277a719bd1cd6977f6ebb9d860b5972 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 16 Feb 2024 03:27:45 +0100 Subject: [PATCH] Avoid vue warning in dev mode (#29188) `vue` currently outputs a warning for this undefined variable during development, which is apparently caused by a bug in `vue-cli`. Workaround by setting this variable. Ref: https://github.com/vuejs/vue-cli/pull/7443 Ref: https://stackoverflow.com/a/77765007/808699 (cherry picked from commit e9a1ffba2c294f74d985870e9b7b5b07e9000857) --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index 3779e860d9..066c26a686 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -176,6 +176,7 @@ export default { new DefinePlugin({ __VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API __VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // https://github.com/vuejs/vue-cli/pull/7443 }), new VueLoaderPlugin(), new MiniCssExtractPlugin({