Björn Mayer
04/29/2020, 10:22 AMval store = createStore(Section.Companion::addSection, SectionNavState(), rEnhancer())
Results in
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