- Variant 'watchosArm64MetadataElements-published'...
# webassembly
v
- Variant 'watchosArm64MetadataElements-published' capability app.cash.sqldelightruntime2.0.1 declares a library: - Incompatible because this component declares a component for use during 'kotlin-metadata', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed a component for use during 'kotlin-api', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.wasm.target (required 'js')
a
Seems like the
app.cash.sqldelight:runtime
doesn't support wasm so, you need to move the dependency from commonMain to all the target sources that use the dependency.
Copy code
// Before

commonMain {
  dependencies {
    // ...
    implementation("app.cash.sqldelight:runtime:2.0.1")
    // ...
  }
}

// After
commonMain {
  dependencies {
    // ...
  }
}

androidMain {
  dependencies {
    // ...
    implementation("app.cash.sqldelight:runtime:2.0.1")
  }
}

nativeMain {
  dependencies {
    // ...
    implementation("app.cash.sqldelight:runtime:2.0.1")
  }
}