Hey, any ideas appreciated, I have an error when r...
# webassembly
f
Hey, any ideas appreciated, I have an error when running my app on wasm. I've done a search, saw a few similar errors, but unable to find a fix. Any ideas on what this might be?
Copy code
WebAssembly.instantiateStreaming(): Compiling function #68051:"pro.respawn.flowmvi.plugins.$onExceptionCOROUTI..." failed: struct.set[1] expected type (ref null 14879), found struct.get of type (ref null 892) @+10799764
CompileError: WebAssembly.instantiateStreaming(): Compiling function #68051:"pro.respawn.flowmvi.plugins.$onExceptionCOROUTI..." failed: struct.set[1] expected type (ref null 14879), found struct.get of type (ref null 892) @+10799764
r
I would search for some casting
👀 1
f
I'm a wasm newby, where should I be looking? I've dug around in the chrome sources, but couldn't find anything relating to the error message
r
Is it some kind of runtime error, so in general your application works, but crashes after some action? Or is it a validation error when your wasm file is loaded?
It could also be a bug in the flowmvi library you are using, so perhaps you could check parts of your code related to flowmvi or try to get help from the author of the lib.
f
It happens on load, I've reached out in the flowmvi channel on here. I have a few printlns in the main function and they are not being printed to the console
c
The error basically says that its expecting one type but finding another so as @Robert Jaros says its likely some kind of casting issue
👀 1
f
I bumped flowmvi to the latest beta and it works. Thanks for the help @Robert Jaros @Charlie Tapping, loving the community on this board!!