https://kotlinlang.org logo
#webassembly
Title
# webassembly
t

Todd

12/14/2023, 2:28 PM
Hey! I decided to try out a simple script in kotlin/wasm and it’s working, but I am calling a function in an onChange event callback and getting an error saying Uncaught ReferenceError: convertStrings is not defined. The function still seems to run though, but when developing this error appears as an overlay on the screen. Curious if I’m doing something wrong or if this is a bug. I also tried converting the project to kotlin/js and am having the same issue. 🧵
1
This is the code I’m working with: https://github.com/dronda-t/quotify-kotlin-wasm
And the error overlay
r

Robert Jaros

12/14/2023, 4:08 PM
You have
oninput
and
onchange
event handlers in your
index.html
file.
👍 1
t

Todd

12/14/2023, 4:18 PM
Omg I'm an idiot thank you. I really appreciate you taking a look. That's what I get for blindly copying over my old code.
2 Views