https://kotlinlang.org logo
#javascript
Title
# javascript
n

Norbi

08/07/2022, 1:37 PM
I've just run into this error when I execute `jsBrowser*Run`:
Copy code
[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
I found some discussion about this problem (eg. https://kotlinlang.slack.com/archives/C0B8L3U69/p1655183383117179?thread_ts=1655180593.195219&cid=C0B8L3U69) and a reported issue (KT-52776 KJS / Gradle: Webpack version update despite yarn.lock breaks Kotlin/JS build). Unfortunatelly the workaround does not work for me. Do you have any idea how this could be solved? Thanks.
Adding the following to gradle.properties seems to fix the problem (or something other, like deleting the yarn.lock file, refactoring the project structure, idk 😕 ):
kotlin.js.webpack.major.version=4
c

Christian Lippka

09/14/2022, 7:50 PM
just for the record, I’m checking out compose-jb and was following the steps in https://github.com/JetBrains/compose-jb/tree/master/tutorials/Web/Getting_Started and had the same issue when jsBrowserDevelopmentRun and defining major version of webpack also fixed this issue for me.
n

Norbi

09/19/2022, 8:28 AM
@Christian Lippka, Which webpack version do you use, 4 or 5?
c

Christian Lippka

09/19/2022, 9:37 AM
4
👍🏻 1
9 Views