Hello. Has anyone encoutered a similar error when ...
# javascript
g
Hello. Has anyone encoutered a similar error when building a kotlin.js project?
error Couldn't find any versions for "kotlin" that matches "%%%KOTLIN_VERSION!!!"
> Task :kotlinNpmInstall FAILED
Execution failed for task ':kotlinNpmInstall'.
>                 Process 'Resolving NPM dependencies using yarn' returns 1
My build.gradle.kts: `
Copy code
repositories {
    maven("<https://kotlin.bintray.com/kotlin-js-wrappers/>")
    mavenCentral()
    jcenter()
}

dependencies {
    implementation("org.jetbrains:kotlin-styled:1.0.0-pre.93-kotlin-1.3.70")
    implementation(npm("styled-components"))
    implementation(npm("inline-style-prefixer"))

    implementation("org.jetbrains:kotlin-react:16.13.0-pre.93-kotlin-1.3.70")
    implementation("org.jetbrains:kotlin-react-dom:16.13.0-pre.93-kotlin-1.3.70")
    implementation("com.soywiz.korlibs.klock:klock-js:1.7.3")

    implementation(npm("react", "16.13.1"))
    implementation(npm("react-dom", "16.13.1"))
    implementation(project(":common"))
}

kotlin.target.browser { }
I've tried removing all of the npm dependencies, yet the same error persists
i
What version of Kotlin do you use? Can you attach a link to your project?
g
Sorry for your time, I already figured it out. I was using the klock library which uses kotlin 1.3.61, when my project uses 1.3.70. Upgrading to a klock 1.9.1, whch uses kotln 1.3.70 elimnated the error.
👍 2