Hello, has anyone tried to use [Rust-Tauri](<https...
# javascript
k
Hello, has anyone tried to use [Rust-Tauri](https://tauri.app/) with kotlin/js and compose-wasm? I am trying to import tauri library:
Copy code
implementation(npm("@tauri-apps/api", "1.2.0", true))
But I got lots of compilation error in
lib.dom.kt
(Prcture 1), which is converted from
tsstdlib
ts library. I think we just need the
invoke()
function defined in tauri (Picture 2), so I tried to set
generateExternals
to
false
and manually add external definition in my
Main.kt
, then the Tauri console tells me "cannot found xxx function." What is the recommended way to use tauri in k/js?
125 Views