https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

ribesg

09/29/2019, 12:49 PM
So I’m trying to create a big project with JVM backend and some frontends. The JS client project doesn’t build because it doesn’t seem to find the dependencies... Try to build it yourself https://github.com/Ribesg/Kita/tree/feature/init I don’t really understand why it’s looking for those dependencies in the root project’s build folder, and I don’t know if they’re supposed to be there in the first place
The error line 14 is REALLY strange...
r

russhwolf

09/29/2019, 1:08 PM
The error on line 14 is just a follow-on from the others. Because the compiler isn't seeing all the rest of your types, it can't tell that the lambda at the end has a
RBuilder
receiver, so it doesn't know that
kita()
there is the same
kita()
you defined above. No idea the root issue though.
r

ribesg

09/30/2019, 1:58 PM
So the issue was that I was getting the Kotlin Js Wrappers from Jetbrains using
npm
dependencies instead of getting them from bintray using a normal dependency. Not sure if it was supposed to work, but replacing all instances of
Copy code
implementation(npm("@jetbrains/xxx", "version"))
with
Copy code
implementation("org.jetbrains:xxx:version")
worked