Both releases of Fritz2 (0.9 and 0.9.1) are broken...
# fritz2
n
Both releases of Fritz2 (0.9 and 0.9.1) are broken. None of the libraries can be imported on the Kotlin JS side. This issue doesn't occur when using Fritz2 v0.8.
List of external libraries with Fritz2 v.0.8.
List of external libraries with Fritz2 v.0.9.1.
b
Both import fine for me
n
Looks like this section needs to be included in the build file, otherwise the Fritz2 JS libraries aren't included:
Copy code
// ...
sourceSets {
        @Suppress("UNUSED_VARIABLE") val commonMain by getting {
            dependencies {
                implementation("dev.fritz2:core:0.9")
            }
        }
    }
// ...
The Fritz2 documentation doesn't go into depth on the build file with what needs to be included, and why.
Ktor by contrast does a much better job at explaining the process on developing a build file: https://ktor.io/docs/gradle.html
One of the consequences of using a plugin (does stuff in the build process that is magical ) is that more things need to be explained in the documentation, especially when things go wrong.
c
Could you please provide us with more details, of what your build file looked like and what you have tried to do in order to upgrade to version 0.9 and 0.9.1 (from version 0.8?)? This way we could understand which information our documentation currently lack and how we could better guide someone through the setup process :-)
n
Below is the build file using Fritz2 v0.8:
Copy code
group = "org.example"
version = "0.1-SNAPSHOT"

plugins {
    kotlin("multiplatform") version "1.4.31"
    id("dev.fritz2.fritz2-gradle") version "0.8"
}

repositories {
    jcenter()
    mavenCentral()
}

kotlin {
    js {
        browser()
    }
}
After updating Fritz2 to v0.9 this is what the build file now looks like:
Copy code
group = "org.example"
version = "0.1-SNAPSHOT"

plugins {
    kotlin("multiplatform") version "1.4.31"
    id("dev.fritz2.fritz2-gradle") version "0.9"
}

repositories {
    mavenCentral()
}

kotlin {
    js(IR) {
        browser()
    }.binaries.executable()

    sourceSets {
        @Suppress("UNUSED_VARIABLE") val commonMain by getting {
            dependencies {
                implementation("dev.fritz2:core:0.9")
            }
        }
    }
}
In order to get Fritz2 v0.9 JS libraries to be included in the project I had to add the Fritz2 Core library, as an implementation dependency in the common module. Without that only the Fritz2 v0.9 JVM libraries are included in the project.
c
Thx for your reply. It seems that prior to 0.9 there was an implicit transitive dependency between the fritz2 gradle plugin and the core. I am quite sure this dependency has never been there for intentional reasons, as there were no notices on this topic in the release notes. Nevertheless I understand that it is quite tedious to find out, if your build file formerly worked. I have created an issue based upon your concerns.
🙏 1