Hello! I’m building a multiplatform project and I’...
# ktor
b
Hello! I’m building a multiplatform project and I’m using the ktor client in order to make the http requests. By looking at the client-mpp in the ktor samples, I was able to create a common client for the android and ios apps but my question is: there’s still no support for the JS client, right?
e
Yep. But js engine is basically done and will be available after some minor bug fixes.
b
great 🙂 Is there any ETA for that?
e
Approximately after next kotlin compiler minor release 🙂
b
cool. I will wait then 😛 thank you very much Leonid 🙂
any news on this? 🙂
e
Js engine is available in 1.0.0-beta-3
b
great. thx a lot Leonid 🙂
Hi again @e5l. I’m trying the 1.0.0-beta-3 release and it looks like I can now compile my common js module with ktor
however, when I try to run my web module I’m getting this error:
Error: 404 Not Found: kotlinx-coroutines-io-js@0.1.0-beta-1
while executing the
npm-install
task. Do you know what can be wrong and what can I do? Because, in fact, that package is not in npm
btw, I’m using the kotlin-frontend-plugin
e
We publish js dependencies in jcenter() for now
npm
packages would be available soon.
👍 1
You could specify dependency as simple gradle dependency and use jar expanding to test and run in browser(like
assembleWeb
task here: https://kotlinlang.org/docs/tutorials/javascript/getting-started-gradle/getting-started-with-gradle.html)
b
I will try to do it then! Thank you very much again 🙂