From 716ae31757bf7d8a97b55c22d30362505d9c711b Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Mon, 6 Dec 2021 10:18:00 +0100 Subject: [PATCH] add common issues section to Web/Getting_Started tutorial --- tutorials/Web/Getting_Started/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tutorials/Web/Getting_Started/README.md b/tutorials/Web/Getting_Started/README.md index 4e829f8cf6..1e8f89006f 100644 --- a/tutorials/Web/Getting_Started/README.md +++ b/tutorials/Web/Getting_Started/README.md @@ -141,3 +141,25 @@ Or run it from the IDE: The browser will open `localhost:8080`: + +## Common issues when running the project + +#### [webpack-cli] Unable to load '@webpack-cli/serve' command +https://youtrack.jetbrains.com/issue/KT-49124 +``` +[webpack-cli] Unable to load '@webpack-cli/serve' command +[webpack-cli] TypeError: options.forEach is not a function +... +``` +There is a temporary workaround: +``` +In build.gradle.kts: + +// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 +afterEvaluate { + rootProject.extensions.configure { + versions.webpackDevServer.version = "4.0.0" + versions.webpackCli.version = "4.9.0" + } +} +```