Can I use Kotlin libraries like Klaxon and Kache w...
# javascript
f
Can I use Kotlin libraries like Klaxon and Kache with Kotlin/JS? I've building against it with Gradle but I'm just getting "unresolved reference: com." style errors when I try to use them
🚫 2
s
You can use Kotlin Multiplatform enabled libraries with kotlin-js, as long as they’ve bothered to add js as a target. Look for the terms
multiplatform
,
mpp
, or
kmp
when reading the github description. You can also use Kotlin js specific libraries, obviously, but those tend to be jetbrains provided libs, like their kotlin-wrappers libraries, that wrap js specific libs, like react.