Hi there. How can I fix following error with Gradl...
# javascript
m
Hi there. How can I fix following error with Gradle Kotlin/JS plugin(org.jetbrains.kotlin.js)?
Copy code
When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModule
I'm developping for browser, and using react-redux. I saw react-redux code, only annotated
@JsModule("react-redux")
,but no annotation
@NonJsModule
.
i
Use
useCommonJs()
in
build.gradle
Copy code
kotlin {
    target {
        ....
        useCommonJs()
    }
}
m
That works good! thank you!