Bahaa Kallas
12/16/2019, 10:37 AM"ourLibraryModule":browserWebpack
task it fails for some dependencies (kotlin-react, kotlin-react-dom, kotlin-extensions, kotlinx-html-js)
with the known error message “Module not found: Error: Can’t resolve etc.”
we had this issue before when we tried to manage our projects using the kotlin frontend plugin but in the end we end up giving up on that
some lines of code states how we doing this right now :
in ourModule build.gradle
sourceSets["main"].dependencies{
api(npm("kotlinx-html","0.6.12"))
api(npm("@jetbrains/kotlin-extensions","1.0.1-pre.89"))
api(npm("@jetbrains/kotlin-react", "16.9.0-pre.83"))
api(npm("@jetbrains/kotlin-react-dom", "16.9.0-pre.83"))
}
in parent build.gradle
dependencies {
implementation(kotlin("stdlib-js"))
implementation(project(":ourModule"))
}
in ourModule build.gradle
we have other dependencies but the webpack task fails only for those
does anyone has this project setup and were able to do it by gradle ?Bahaa Kallas
12/16/2019, 2:55 PM