I'm trying to run a Compose for Web app on wasm, b...
# compose-web
a
I'm trying to run a Compose for Web app on wasm, but I'm getting
Cannot find module 'skia'
error in the Chrome's console. The
compose-imageviewer
sample runs fine, though. I'm using Kotlin
1.8.20
, Compose
1.4.0-dev-wasm06
. Does anyone know how I could fix this?
o
a
Hmm, I do have those lines.
o
just in case: those lines are needed in the module with fun main. Do you just run wasmRun? or is it a distribution? There was an issue that some files were missing in the distribution. Another guess: <script src=“skiko.js”> </script> in your index.html
d
@Arkadii Ivanov Did you ever solve this? I'm facing the same.
a
Nope, I gave up with wasm for now. Too experimental for me.
o
Could you please share a project with the issue?
d
@Oleksandr Karpovich [JB] Yes, here you go - the
wasm
branch of my homepage project. The project itself is completely hacked apart in this branch, I've just been trying to display 'Hello' in Compose; but whenever I run
wasmBrowserRun
I just get this in Chrome:
image.png
...if it just works on your end I may have something environmental going on.
As you can see from commented lines I tried between
1.9.20-dev-2914
and
1.9.0-Beta
but both yield same result.
@Oleksandr Karpovich [JB] should I report this in YouTrack?
o
Yes, please. It would be helpful. https://github.com/JetBrains/compose-multiplatform here
426 Views