Browse Source

add common issues section to Web/Getting_Started tutorial

pull/1549/head
Oleksandr Karpovich 3 years ago committed by GitHub
parent
commit
716ae31757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      tutorials/Web/Getting_Started/README.md

22
tutorials/Web/Getting_Started/README.md

@ -141,3 +141,25 @@ Or run it from the IDE:
The browser will open `localhost:8080`:
<img alt="" src="run_result.png" height="500" />
## 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<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
versions.webpackCli.version = "4.9.0"
}
}
```

Loading…
Cancel
Save