We're in the process of updating to the Kotlin 1.4...
# javascript
m
We're in the process of updating to the Kotlin 1.4, and are experiencing an issue. When running browserProductionWebpack, the build fails with the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':hltv-app:browserProductionWebpack'.
> Module 'kotlin-extensions' not found
Module 'kotlin-react' not found
Module 'kotlin-styled' not found
Module 'kotlin-wrappers-kotlin-css' not found
We have the following dependencies declared:
implementation "org.jetbrains:kotlin-react:16.13.1-pre.111-kotlin-1.4.0"
implementation "org.jetbrains:kotlin-react-dom:16.13.1-pre.111-kotlin-1.4.0"
implementation "org.jetbrains:kotlin-react-router-dom:5.1.2-pre.112-kotlin-1.4.0"
implementation "org.jetbrains:kotlin-styled:1.0.0-pre.112-kotlin-1.4.0"
implementation "org.jetbrains:kotlin-extensions:1.0.1-pre.112-kotlin-1.4.0"
.. And the following NPM dependencies:
implementation(npm("react", "16.13.1"))
implementation(npm("react-dom", "16.13.1"))
implementation(npm("react-router-dom", "5.2.0"))
Has anyone experienced this error, and have some way to solve it?
i
Could you take a look into
build/js/node_modules
Do you have such modules here?
m
Hi Ilya Thanks for answering. It actually turned out that another dependency (which I didn't paste, because I didn't realize it was relevant) caused the problem. We had a dependency on:
implementation group: 'com.ccfraser.muirwik', name: 'muirwik-components', version: '0.5.1'
Bumping it to 0.6.0 (released yesterday) fixed the problem.
👍 1
i
I am happy to hear it. Just a note, I recommend to align
pre.
versions for kotlin wrappers and now kotlin-wrappers contains information about its npm dependencies, so you can not explicitly set
react
,
react-dom
and
react-router-dom
👍 1