I tried adding: ```tasks.withType<KotlinJsCompi...
# javascript
m
I tried adding:
Copy code
tasks.withType<KotlinJsCompile>().configureEach {
    compilerOptions {
        target.set("es2015")
    }
}
to the example KVision project made by IntelliJ wizard. It gives the following error when building:
Copy code
> Task :jsBrowserProductionWebpack
export 'default' (imported as 'modulesExt') was not found in 'snabbdom' (possible exports: Fragment, array, attachTo, attributesModule, classModule, datasetModule, eventListenersModule, fragment, h, htmlDomApi, init, jsx, primitive, propsModule, styleModule, thunk, toVNode, vnode)
Is something broken?
a
Hmm, it's weird. Could you please share, what versions of KVision and Kotlin do you use in the project?
m
systemProp.kvisionVersion=8.0.1 systemProp.kotlinVersion=2.0.21
r
KVision doesn't support es2015
😞 2
m
Okay, I just tried it to check out es2015 module to be used by other TS code. I should try more vanilla Kotlin/js project then.
m
We use es modules 🙂 @Marius Kotsbak https://github.com/studoverse/campus-qr