<Setting fillStyle on Canvas using new WASM issue>...
# forum
r
Setting fillStyle on Canvas using new WASM issue I am trying to set fillStyle on a HTML Canvas using the new KotlinWASM. If I pass a string - I get a compiler error. If I force it to Dynamic (to pass typing), I get the browser crashing say the passed value is opaque. * Compile Error (when String is passed)* file///Development/wasmMandlebrot/src/wasmMain/kotlin/canvas.kt9:42 Type mismatch: inferred type is String but Dynamic? was expected Browser Error (when Dynamic is passed) Uncaught (in promise) TypeError: WebAssembly objects are...