Wolf Logan
04/28/2020, 6:04 PMgradle build
immediately after a gradle clean
, but if I then make a change to any Kotlin code in the JS source set, the next gradle build
will fail.Wolf Logan
04/28/2020, 6:06 PMgradle build
(when it fails), the error is that it can't resolve the Kotlin import react.*
statementsturansky
04/28/2020, 6:23 PMkotlin-wrappers
?Wolf Logan
04/28/2020, 8:23 PMdependencies
section for that source set:
dependencies {
implementation(kotlin("stdlib-js"))
implementation("org.jetbrains.kotlinx:kotlinx-html-js:0.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.3.5")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.20.0")
implementation(npm("@fortawesome/fontawesome-svg-core", "^1.2.27"))
implementation(npm("@fortawesome/free-solid-svg-icons", "^5.12.1"))
implementation(npm("@fortawesome/react-fontawesome", "^0.1.9"))
implementation(npm("@jetbrains/kotlin-css", "^1.0.0-pre.91"))
implementation(npm("@jetbrains/kotlin-css-js", "^1.0.0-pre.91"))
implementation(npm("@jetbrains/kotlin-extensions", "1.0.1-pre.91"))
implementation(npm("@jetbrains/kotlin-react", "16.9.0-pre.91"))
implementation(npm("@jetbrains/kotlin-react-dom", "^16.9.0-pre.91"))
implementation(npm("@jetbrains/kotlin-react-redux", "^5.0.7-pre.91"))
implementation(npm("@jetbrains/kotlin-react-router-dom", "^4.3.1-pre.91"))
implementation(npm("@jetbrains/kotlin-redux", "4.0.0-pre.91"))
implementation(npm("react", "^16.0.0-0"))
implementation(npm("react-dom", "^16.0.0"))
implementation(npm("react-redux", "5.0.7"))
implementation(npm("react-router-dom", "4.3.1"))
implementation(npm("redux", "^4.0.0-0"))
implementation(npm("universal-cookie", "^4.0.3"))
implementation(npm("victory", "^34.1.3"))
implementation(npm("html-webpack-plugin", "^4.2.0"))
}
Wolf Logan
04/28/2020, 9:53 PMcreate-react-kotlin-app
that I migrated to a gradle build. It hadn't occurred to me that I needed to switch from the NPM packages of kotlin-wrappers
to the Bintray artifacts. Making that change has my builds running smoothly nowturansky
04/28/2020, 9:57 PMpre.103
you can:
1. Declare wrappers only, npm dependencies will be added automatically
2. Remove kotlin-css-js
dependency (not required anymore).
3. Remove kotlin-html-js
- it already declared in wrappersWolf Logan
04/28/2020, 9:58 PMpre.91
for the time being, but I'll be migrating that forwardturansky
04/28/2020, 10:03 PMcoroutines
and serialization
dependencies can be removed too, compatible versions already declared in kotlin-redux
and kotlin-react
dependenciesIlya Goncharov [JB]
04/29/2020, 8:16 AMkotlin-react
and other dependencies form kotlin-wrappers
via Gradle dependencies, not NPM
https://youtrack.jetbrains.com/issue/KT-35197