Heyho, I am trying to use kotlin-redux but the com...
# react
b
Heyho, I am trying to use kotlin-redux but the compiler is complaining:
Copy code
val store = createStore(Section.Companion::addSection, SectionNavState(), rEnhancer())
Results in
Copy code
When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModule
Any idea, what could cause this? Usually I just add a
@JsNonModule
to the external declaration, but since
createStore
is defined in kotlin-redux I cannot do that here. I can get it running by declaring createStore by myself and adding the
JsNonModule
annotation manually, but this cannot be the solution. Something is off €dit: Well.. sometimes reading the manual helps: https://kotlinlang.org/docs/reference/js-modules.html#creating-libraries-and-nodejs-files Solved
1