https://kotlinlang.org logo
g

galex

02/18/2019, 4:00 AM
Hello, I copy the dependencies of my dependencies by looking at the runtime dependencies and copying their js files like described here: https://github.com/cfnz/muirwik-starterapp/issues/2. This lets me run in dev ktor from the js sourceset of a multiplatform project, whish is fine. Now I am trying to run this app in production with the kotlin-dce-js plugin, which gives me this error on load:
Copy code
kotlinx-serialization-runtime-js.js:9722 Uncaught TypeError: e.defineModule is not a function
    at Object.r (kotlinx-serialization-runtime-js.js:9722)
    at Object.<anonymous> (kotlinx-serialization-runtime-js.js:3)
    at n (bootstrap:19)
    at Object.<anonymous> (mu51k-core.js:3504)
    at n (bootstrap:19)
    at Object.<anonymous> (AuthResponseUtils.kt:8)
    at Object.<anonymous> (AuthResponseUtils.kt:8)
    at n (bootstrap:19)
    at Object.<anonymous> (hyphenateProperty.js:17)
    at n (bootstrap:19)
Which is this line:
Copy code
Kotlin.defineModule('kotlinx-serialization-runtime-js', _);
Any idea?