Alberto
12/13/2023, 2:30 PMjs(IR) {
useEsModules()
browser()
binaries.library()
generateTypeScriptDefinitions()
}
Im publishing the library to my local maven, but when trying to use it I get these errors
Could not resolve com.xxx.xxx:core:0.0.1.5.
Required by:
project :composeWeb
> No matching variant of com.biosphere.mobile:core:0.0.1.5 was found. The consumer was configured to find a library for use during 'kotlin-api', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm', attribute 'org.jetbrains.kotlin.wasm.target' with value 'js' but:
- Variant 'debugApiElements-published' capability com.xxx.xxx:core:0.0.1.5 declares a library for use during compile-time:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, 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')
How can I use it on the wasamJSMain project?Michael Paus
12/13/2023, 3:00 PMaishwaryabhishek3
12/13/2023, 3:15 PMAlberto
12/13/2023, 3:28 PM