Hi everyone, I'm having some issues building a Kot...
# javascript
f
Hi everyone, I'm having some issues building a Kotlin/JS React app in production mode (it works when running it locally in dev mode), if anyone can give me a hand it'd be greatly appreciated as I'm quite new with JS. I wrote a post in the Kotlin forum (https://discuss.kotlinlang.org/t/kotlin-js-project-doesnt-build-properly-for-production/17022) as it's a lot of text to put here.
👀 1
✔️ 1
i
Hi! It looks like https://youtrack.jetbrains.com/issue/KT-36484. Try to add in your build.gradle file:
Copy code
browser {
    dceTask {
        keep("ktor-ktor-io.\$\$importsForInline\$\$.<http://ktor-ktor-io.io.ktor.utils.io|ktor-ktor-io.io.ktor.utils.io>")
    }
}
👌 1
f
That fixed it! Thanks so much @Ivan Kubyshkin [JetBrains]!! 🙂
👍 2