Anyone knows how to keep generated Ktor serializer...
# javascript
r
Anyone knows how to keep generated Ktor serializers when using Koltin JS DCE?
I keep getting
No transformation found: class ByteChannelJS -> class SearchResponse
but I’m not sure how to say to DCE to keep the serializer
I don’t know if the
keep
list supports things like
**
My codebase is here https://github.com/Ribesg/Kita/tree/feature/init (run
gradle run
)
b
r
Yes and it does not help
Also how are you even supposed to do that
Note that if your function has parameters, its name will be mangled, so the mangled name should be used in the keep directive.
Wait I’ve got this error even without DCE
So I was just dumb. I changed the endpoint location and didn’t change it in the client, it was trying to decode HTML as my SearchResponse class. I wonder if I can somehow share the `Location`s between server and client