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

Unable to use 'js code' in wasmJs with Kotlin 2.0.10 (or lower) + Serialization 1.7.2 #2807

Open
ForteScarlet opened this issue Sep 3, 2024 · 0 comments

Comments

@ForteScarlet
Copy link

ForteScarlet commented Sep 3, 2024

Describe the bug

Hello! When I try to add kotlinx-serialization-core:1.7.2 to my project in KMP v2.0.10, I can't use JS code in the project, both external and js("...").

To Reproduce

This is the program I use to try to reproduce: untitled.zip .

Using gradle allTests will get errors, no errors if implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.2") is removed or kt is modified to 2.0.20.

I'm not quite sure if the nature of backward compatibility in Wasm would be similar to that in the JVM.
Does this mean that if I want to use v1.7.2 in WasmJs, the Kt version must be v2.0.20+ ?

Environment

  • Kotlin version: 2.0.10
  • Library version: 1.7.2
  • Kotlin platforms: WasmJs
  • Gradle version: 8.8
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

2 participants
@ForteScarlet and others