JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.15k stars 1.17k forks source link

[Wasm] `composeResources` are not bundled with the wasm application #4638

Closed Nek-12 closed 6 months ago

Nek-12 commented 6 months ago

Versions

To Reproduce

  1. Create a shared module with wasm target that has composeResources defined
  2. Create another module that uses the shared module and packages a wasm app
  3. Deploy the app. Resources from composeResources of the shared app are not resolved and the app crashes

Expected behavior All resources of all modules are bundled with the wasm application

Workaround: https://github.com/respawn-app/FlowMVI/blob/109e557e95b529d8cefc02d7dcfa7080e7f74502/sample/wasmApp/build.gradle.kts

mdsadiqueinam commented 6 months ago

works only with Kotlin version 2.0.0 have a look into this https://github.com/JetBrains/compose-multiplatform/pull/4482

okushnikov commented 3 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.