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

Support for kotlin/wasm #165

Closed
sunildhiman90 opened this issue Jun 18, 2023 · 6 comments · Fixed by #289
Closed

Support for kotlin/wasm #165

sunildhiman90 opened this issue Jun 18, 2023 · 6 comments · Fixed by #289

Comments

@sunildhiman90
Copy link

Hi ,

i was trying to implement it in compose multiplatform project with kotlin/wasm support, But it does not work.
I got this error:

Could not determine the dependencies of task ':shared:wasmPackageJson'.
> Could not resolve all dependencies for configuration ':shared:wasmNpm'.
   > Could not resolve cafe.adriel.voyager:voyager-navigator:1.0.0-rc06.
     Required by:
         project :shared
      > No matching variant of cafe.adriel.voyager:voyager-navigator:1.0.0-rc06 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' but:
          - Variant 'debugApiElements-published' capability cafe.adriel.voyager:voyager-navigator:1.0.0-rc06 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'

Are we planing to add support for koltin/wasm any recently?

Thanks

@programadorthi
Copy link
Collaborator

There is a little sample using WASM here. But the repo is not updated with latest Kotlin WASM release.

@Irineu333
Copy link

Irineu333 commented Oct 21, 2023

@sunildhiman90 I had the same error, were you able to use it with Kotlin\Wasm?

@sunildhiman90
Copy link
Author

Hi @Irineu333, i postponed work on it. So i didnt tried it again actually. If i will try it, i will let u know.

@Irineu333
Copy link

There is a little sample using WASM here. But the repo is not updated with latest Kotlin WASM release.

Yes, in my case I wanted the target to be Kotlin/Wasm. But for now, I'll continue with Kotlin/JS, as Kotlin/Wasm is still very unstable.

@joreilly
Copy link

Hi, curious of any plans still to support Wasm target now that it's reached alpha.

@Syer10 Syer10 mentioned this issue Dec 10, 2023
@DevNatan DevNatan linked a pull request Dec 27, 2023 that will close this issue
@DevSrSouza
Copy link
Collaborator

Released on https://github.com/adrielcafe/voyager/releases/tag/1.1.0-alpha03

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

Successfully merging a pull request may close this issue.

5 participants