Hey folks, I’m trying to use code from common KMP ...
# server
y
Hey folks, I’m trying to use code from common KMP module in my Ktor backend module. It compiles and runs successfully, but IDEA highlights keep telling there are no such classes. Don’t you know how the issue can be fixed? I’m using
Kotlin 1.4.0
. (Sample project is attached).
j
I can only tell you that I have the same. My workaround is publishing the common module to my local maven and get it from there, a bit ugly.
y
Yes, this is one of possible solutions, which I’m thinking about. Thanks!
j
I don't think it should be necessary 🙂 somehow you cannot include the kmp common module properly in normal jvm modules
y
I included it in Kotlin/JS module (in the same sample project) and highlighting works.
@Joost Klitsie here is an issue for this problem: https://youtrack.jetbrains.com/issue/KT-43934. Upvote if you like 😉
j
👍 done 🙂
🙌 1