Skip to content

[BUG] filekit-compose:0.8.8 Causes WebAssembly.instantiate() Import Function Error #196

Open
@OrdinarySF

Description

Description:
When using a Compose Multiplatform JS project, I encountered the following error message:

WebAssembly.instantiate(): Import #4278 "./skiko.mjs" "org_jetbrains_skia_Canvas__1nSaveLayerSaveLayerRecRect": function import requires a callable
LinkError: WebAssembly.instantiate(): Import #4278 "./skiko.mjs" "org_jetbrains_skia_Canvas__1nSaveLayerSaveLayerRecRect": function import requires a callable

After thorough investigation, I confirmed that the issue originates from the dependency io.github.vinceglb:filekit-compose:0.8.8.

Steps to Reproduce:

  1. In a Compose Multiplatform JS project, add the dependency:
    implementation("io.github.vinceglb:filekit-compose:0.8.8")
  2. Run the project, and the error will appear in the console or build logs.

Expected Behavior:
The project should run normally without any WebAssembly import errors, and related functionalities (such as canvas drawing) should work as expected.

Actual Behavior:
The project fails to run or starts with the above WebAssembly import error, which prevents the WebAssembly module from instantiating correctly and affects subsequent functionalities.

Environment Information:

  • Compose Multiplatform version: 2.1.0
  • filekit-compose version: 0.8.8
  • Target Platform: JS
  • Browser/Runtime Environment: Chromium Engine Version 133.0.6943.54

Additional Information:

  • The error log indicates that the issue is related to the function export org_jetbrains_skia_Canvas__1nSaveLayerSaveLayerRecRect in skiko.mjs, which is expected to be a callable function but is not.
  • After excluding other configuration issues, I have confirmed that the problem is directly associated with filekit-compose:0.8.8.
  • I hope this issue can be addressed and fixed soon, or an appropriate workaround provided.

Notes:
If further information or debug logs are needed, please feel free to contact me.


Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions