Joffrey
08/14/2019, 5:47 PMmoduleKind
configuration in Gradle gives me a different error:
- default moduleKind
or `moduleKind="umd"`: " When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModule "
- `moduleKind="plain"`: " Can't access function 'createStore' marked with @JsModule annotation from non-modular project "
- moduleKind="commonjs"
compiles the main
sources fine, but then I get the following for tests:
When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModuleDid I miss something? Am I required to define a
moduleKind
separately for tests? Where is it then?Joffrey
08/14/2019, 5:54 PMtasks {
compileKotlinJs {
kotlinOptions.metaInfo = true
kotlinOptions.sourceMap = true
kotlinOptions.moduleKind = "commonjs"
kotlinOptions.main = "call"
}
compileTestKotlinJs {
kotlinOptions.moduleKind = "commonjs"
}
}
anton.bannykh
08/15/2019, 10:19 AM