kpgalligan

    kpgalligan

    3 years ago
    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?
    h0tk3y

    h0tk3y

    3 years ago
    kpgalligan

    kpgalligan

    3 years ago
    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
    h0tk3y

    h0tk3y

    3 years ago
    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
    kpgalligan

    kpgalligan

    3 years ago
    I had browser, but also some other config I copied from another project. Will look at this sample