From 6e8f0f6f6d58780496c6f34d9ddd3ecf6b23ce6a Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 5 Aug 2024 19:10:34 +0200 Subject: [PATCH] Fix develop build. Use `console.warn` instead of an undefined `compilation` object. --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 570cf87990..054dada461 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -714,8 +714,8 @@ module.exports = (env, argv) => { sourcemaps: { paths: "./webapp/bundles/**", }, - errorHandler: (err, invokeErr, compilation) => { - compilation.warnings.push("Sentry CLI Plugin: " + err.message); + errorHandler: (err) => { + console.warn("Sentry CLI Plugin: " + err.message); console.log(`::warning title=Sentry error::${err.message}`); }, }),