Anyone had any luck with kotlinx.serialization in ...
# compose-web
e
Anyone had any luck with kotlinx.serialization in compose-web? Doesnt seem to work for me. I'm guessing because compose-web is still alpha.
b
I've been using it with no issue.
a
“Doesnt seem to work” is vague. It should work
j
also being used by I think most of Compose for Web clients in samples at https://github.com/joreilly
e
I uploaded my code to github here: https://github.com/ericbets/compose-example/blob/main/composeApp/src/wasmJsMain/kotlin/org/tricorder/kmpweb/App.kt - I think the error is gradle related. Uncommenting those lines produces the error.
a
Why don't you just paste the error here instead of expecting us to download built and test it?
e
Okay arjan, give me a minute though im making progress.
solved it. 🙂
a
So what was the issue and what solved it?
e
It was a combination of issues. I accidentally had some json decoding code in my composable instead of my lambda and I was using single quotes in my actual json instead of double quotes. It was simple stuff but I was convinced my gradle illiteracy was the problem but suprisingly my modifications there were fine.
👍 1