jdoneill
08/26/2021, 5:23 PMktor-auth
dependency setup document for mulitplatform android/ios/web? I am running into this error:
No matching variant of io.ktor:ktor-auth:1.6.3 was found. The consumer was configured to find a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js', attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' but:
- Variant 'jvmApiElements-published' capability io.ktor:ktor-auth:1.6.3:
- Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
Using Kotlin 1.5.30, Ktor 1.6.3, applying the ktor-auth
in common and mixing in ktor-client-auth-js
in common and/or jsMain and continue to get this error building/running web
This worked with previous versions but having issues getting it to work now on web/js, anyone seen this?jdoneill
08/26/2021, 6:05 PMAleksei Tirman [JB]
08/27/2021, 6:18 AMktor-auth
artifact is JVM only but ktor-client-auth
is multiplatform. This article in documentation is about the Auth
plugin for a client.jdoneill
08/27/2021, 6:52 PMktor-auth
, switched back and all good, thanks 👍