diff --git a/app/react/src/server/build.js b/app/react/src/server/build.js index 884b9a7188a7..10d97cf9608b 100755 --- a/app/react/src/server/build.js +++ b/app/react/src/server/build.js @@ -83,7 +83,7 @@ webpack(config).run((err, stats) => { // eslint-disable-next-line no-unused-expressions err && logger.error(err.message); // eslint-disable-next-line no-unused-expressions - stats.hasErrors() && stats.toJson().errors.forEach(e => logger.error(e)); + stats && stats.hasErrors() && stats.toJson().errors.forEach(e => logger.error(e)); process.exit(1); }