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

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

Closed
Nek-12 opened this issue Apr 16, 2024 · 2 comments
Closed

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

Nek-12 opened this issue Apr 16, 2024 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Nek-12
Copy link

Nek-12 commented Apr 16, 2024

  • Web (K/Wasm) - Canvas based API

Versions

  • Kotlin version*: 1.9.23
  • Compose Multiplatform version*: 1.6.2

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

@Nek-12 Nek-12 added bug Something isn't working submitted labels Apr 16, 2024
@Nek-12 Nek-12 changed the title [Wasm] [Wasm] composeResources are not bundled with the wasm application Apr 16, 2024
@mdsadiqueinam
Copy link

works only with Kotlin version 2.0.0 have a look into this #4482

@terrakok terrakok added duplicate This issue or pull request already exists and removed submitted labels Apr 17, 2024
@okushnikov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants