Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed build when targeting wasmJs #275

Open
andrea-liu87 opened this issue Aug 31, 2024 · 0 comments
Open

Failed build when targeting wasmJs #275

andrea-liu87 opened this issue Aug 31, 2024 · 0 comments

Comments

@andrea-liu87
Copy link

Hello I had this error on my Compose Multiplatform project when add kotlin target wasmJs(WebAssembly)

Could not resolve dev.icerock.moko:mvvm-core:0.16.1.
Required by:
project :shared
> No matching variant of dev.icerock.moko:mvvm-core:0.16.1 was found. The consumer was configured to find a library for use during 'kotlin-runtime', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm', attribute 'org.jetbrains.kotlin.js.public.package.json' with value 'public-package-json', attribute 'org.jetbrains.kotlin.wasm.target' with value 'js' but:
- Variant 'debugApiElements-published' capability dev.icerock.moko:mvvm-core:0.16.1 declares a library:
- Incompatible because this component declares a component for use during compile-time, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component for use during 'kotlin-runtime', 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.js.public.package.json (required 'public-package-json')
- Doesn't say anything about org.jetbrains.kotlin.wasm.target (required 'js')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant