https://kotlinlang.org logo
k

kpgalligan

07/09/2019, 2:16 PM
I’m a little new with the JS side of multiplatform. Running tests with backtick names does not work. Is that just the way I have it configured, or do backtick names need JsName on them?
k

kpgalligan

07/09/2019, 8:50 PM
Thanks. Next question, any good 1.3.4x examples of a multiplatform lib and JS? I’m getting “Module not found” when the tests try to run, but I’m sure it’s just bad config
h

h0tk3y

07/09/2019, 9:06 PM
Have you added either
browser()
or
nodejs()
to the JS target of the library? That's required for the plugin to handle the library as a JS module.
Here's an example where
model
is a multiplatform library and
representation
uses the plugin
org.jetbrains.kotlin.js
with webpack and depends on `model`: https://github.com/h0tk3y/kotlin-mpp-insight
k

kpgalligan

07/09/2019, 9:16 PM
I had browser, but also some other config I copied from another project. Will look at this sample
2 Views