I’ve been trying to specify dependencies with few ...
# react
o
I’ve been trying to specify dependencies with few different approaches:
Copy code
implementation(npm("@jetbrains/kotlin-react", "16.6.0-pre.67"))
                implementation(npm("@jetbrains/kotlin-react-dom", "16.6.0-pre.67"))
in
js{}
and
js{ browser {} }
sections as well as
Copy code
kotlinFrontend {
    npm {
        dependency("@jetbrains/kotlin-react")
        dependency("@jetbrains/kotlin-react-dom")

        dependency("core-js", "^2.0.0")
        dependency("react", "16.8.3")
        dependency("react-dom", "16.8.3")
    }
}
but it does not help.
s
Hi! Currently namespace (
@jetbrains/…
) not supported in Kotlin/JS Gradle plugin. There is workaround for that: you can create custom webpack config in
webpack.config.d
and it will be injected into webpack config. See example here: https://github.com/snrostov/kotlin-full-stack-application-demo/blob/snrostov/kotlin-1.3.40/client/webpack.config.d/03.resolve.js Also there is issues with
"@jetbrains/kotlin-react"
publication.