I’m noticing that Dukat isn’t working. I’m on 1.3....
# javascript
s
I’m noticing that Dukat isn’t working. I’m on 1.3.61. I’ve placed
Copy code
kotlin.js.experimental.generateKotlinExternals=true
in my
settings.gradle
, I’ve added npm dependencies:
Copy code
plugins {
    kotlin("js")
}

kotlin {
    target {
        nodejs()
    }

    sourceSets {
        val main by getting {
            dependencies {
                implementation(Deps.kotlin.stdlib.js)

                npm("firebase-admin", "8.6.0")
                npm("firebase-functions", "3.3.0")
                npm("twilio", "3.39.4")
                npm("left-pad", "1.3.0")
            }
        }
        val test by getting {
            dependencies {
                implementation(Deps.kotlin.test.js)
            }
        }
    }
}
and I’m running the
generateExternals
command, but I still can’t see any generated files in the build directory, or any code completion. Anyone have any ideas? I’ve also tried the 1.3.70 eap, with no results.
t
Copy code
// invalid dependency declaration
npm("firebase-admin", "8.6.0")
                npm("firebase-functions", "3.3.0")
                npm("twilio", "3.39.4")
                npm("left-pad", "1.3.0")
Copy code
// valid dependency declaration
implementation(npm("firebase-admin", "8.6.0"))
                implementation(npm("firebase-functions", "3.3.0"))
                implementation(npm("twilio", "3.39.4"))
                implementation(npm("left-pad", "1.3.0"))
s
Good call. That fixed it!