Hi Team, I am using KMP Wasm for a project. Yester...
# webassembly
m
Hi Team, I am using KMP Wasm for a project. Yesterday i tried to add font support in the project by using jet snack example project, but after adding started getting errors like ERROR in ./kotlin/composeApp.uninstantiated.mjs 4512:41-55 in Web page when i tried to run it. Before it was working fine for me. Can anyone help?
a
@Oleksandr Karpovich [JB] do you know what could be as the root cause?
o
what changes did you make after which it started to show an error? Do you have your project on github?
m
yes here is my repo https://github.com/iammohdzaki/KotLibs I made changes in last commit only , earlier than that it works . I used jetsnack example as reference to add theme and fonts.
o
the code doesn't use these functions:
Copy code
@ExternalSymbolName("_malloc")
@kotlin.wasm.WasmImport("skia", "malloc")
private external fun _malloc(size: Int): NativePointer

@ExternalSymbolName("_free")
@kotlin.wasm.WasmImport("skia", "free")
private external fun _free(ptr: NativePointer)
You can delete them. And then the issue is gone
m
Thanks it worked
1
👍 1