I'm facing a very odd issue where upgrading from 1...
# javascript
m
I'm facing a very odd issue where upgrading from 1.4.32 to 1.5.0 breaks my Kotlin/JS project, it compiles without any issues but the code fails because "CancelledException" (a typealias in Ktor) is not present. This issue is also present in a development webpack so I don't think it is a DCE issue. (Legacy compiler)
👀 1
Also something very weird: You can't use the CancelledException typealias in the JS project, however it works fine in the JVM project, I wonder if the issue is related...
t
You can use EAP Ktor to solve this problem
Or use coroutines
1.4.3
and serialization
1.1.0
before next Ktor release
m
Thank you! Changing to Ktor and Serialization to
1.4.3
fixed the issue 🙂 I've also needed to add
api(npm("text-encoding", "0.7.0"))
to my build script because DCE was failing without that dependency. K
t
Do you use Ktor
1.5.4
?
With Kotlin
1.5.4
this fallback required only (before next release)
FYI - Ktor -
1.5.4
+ Coroutines
1.4.3
@MrPowerGamerBR works?
m
@turansky haven't tested yet, I will try it later, for now it works so I don't really care, I was already having headaches just trying to make this very messy project work with Kotlin 1.5.0 😛
but thanks for the tip!