I am using kotlin-redux from kotlin-wrappers, when...
# javascript
p
I am using kotlin-redux from kotlin-wrappers, when i try to run app, compiler says me “When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModule”. How can i fix this problem? At the same time i use kotlin-react, and calling render function doesn’t give this error but it is not marked with JsNonModule annotation
👍 1
b
use commonjs:
Copy code
kotlin {
  targets {
    js {
      useCommonJs()
    }
  }
}
👍 1
e
Here's a sample project, if you want a working reference: https://github.com/21region/kotlin-multiplatform