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
Artem Kobzar
04/09/2024, 9:41 AM
@Oleksandr Karpovich [JB] do you know what could be as the root cause?
o
Oleksandr Karpovich [JB]
04/09/2024, 11:47 AM
what changes did you make after which it started to show an error?
Do you have your project on github?
m
Mohammad Zaki
04/09/2024, 12:13 PM
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
Oleksandr Karpovich [JB]
04/09/2024, 12:36 PM
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)