diff --git a/flow-server/src/main/java/com/vaadin/flow/server/frontend/NodeUpdater.java b/flow-server/src/main/java/com/vaadin/flow/server/frontend/NodeUpdater.java index 61114afdd64..12908ed12dd 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/frontend/NodeUpdater.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/frontend/NodeUpdater.java @@ -312,6 +312,8 @@ static Map getDefaultDevDependencies() { // Defining loader until a resolution exists to issue // https://github.com/DanielSchaffer/webpack-babel-multi-target-plugin/issues/94 defaults.put("babel-loader", "8.2.2"); + // Defining html-webpack-plugin due to same issue as babel-loader + defaults.put("html-webpack-plugin", "4.5.2"); defaults.put("copy-webpack-plugin", "5.1.2"); defaults.put("compression-webpack-plugin", "4.0.1"); defaults.put("extra-watch-webpack-plugin", "1.0.3"); diff --git a/flow-tests/test-dev-mode/src/test/java/com/vaadin/flow/uitest/ui/ClientSideExceptionHandlingIT.java b/flow-tests/test-dev-mode/src/test/java/com/vaadin/flow/uitest/ui/ClientSideExceptionHandlingIT.java index e043353cad4..8a6e972d2be 100644 --- a/flow-tests/test-dev-mode/src/test/java/com/vaadin/flow/uitest/ui/ClientSideExceptionHandlingIT.java +++ b/flow-tests/test-dev-mode/src/test/java/com/vaadin/flow/uitest/ui/ClientSideExceptionHandlingIT.java @@ -35,7 +35,7 @@ public void developmentModeExceptions() { String errorMessage = findElement(ERROR_LOCATOR).getText(); Assert.assertTrue("Unexpected error message: " + errorMessage, - Pattern.matches(".*TypeError.* property 'foo' of.*null.*", + Pattern.matches(".*TypeError.* Cannot read properties of .*null.*.*reading 'foo'.*", errorMessage)); }