I'm getting `NoSuchElementException` when I try to...
# javascript
n
I'm getting
NoSuchElementException
when I try to create an HttpClient with Kotlin/JS 1.5.2 with Ktor Client 1.6.1 (legacy compiler). According to this issue, this is a DCE problem: https://github.com/ktorio/ktor/issues/1731 When I get an error like this, how do I know which declarations need to be added to the DCE keep setting? I tried adding the one suggested in the above issue, but it didn't work:
Copy code
dceTask {
    keep("ktor-ktor-io.\$\$importsForInline\$\$.<http://ktor-ktor-io.io.ktor.utils.io|ktor-ktor-io.io.ktor.utils.io>")
}
t
Do you use serialization runtime
1.2.1
?