Hey guys for the past few days stuck with GitHub w...
# webassembly
m
Hey guys for the past few days stuck with GitHub workflow to deploy wasm on GitHub pages. Can anyone help this is the workflow link - https://github.com/iammohdzaki/KotLibs/blob/main/.github/workflows/build-and-publish-web.yml Can anyone have a look at it? Also checked with the current path build/dist/wasmJs/productionExecutable and composeApp/build/dist/wasmJs/productionExecutable
a
I have a GitHub template (https://github.com/Kotlin/kotlin-wasm-browser-template/) which has publishing to GitHub pages with GitHub Actions. You could take a look on it
m
I am getting this error
a
What gradle task do you use to build the project?
m
wasmJsBrowserRun to run it directly
so I did some debugging when I run:webJsBrowserProductionWebpack is not generating anything at this location i.e /build/dist/wasmJs/productionExecutable instead found this inside /build/kotlin-webpack/wasmJs/productionExecutable . Should I use this one.
how should /productionExecutable folder should look like for task :wasmJsBrowserProductionWebpack. In My case this task is not generating anything in /build/dist/wasmJs/productionExecutable .
r
why "webJs" and not "wasmJs" ?
m
my bad, i updated i mistyped in above message.
Do you have any idea about this?
r
what kotlin version do you use?
m
Copy code
2.0.0-Beta3
I'm not sure if it affects Beta3
m
should i change kotlin version?
r
there is 2.0.0-RC1 available
m
ok let me try
i am getting this target error now Please initialize at least one Kotlin target in 'composeApp (:composeApp)'.
r
Have you updated compose to compatible version (1.6.2) ?
m
yes its 1.6.2 also compose-compiler = "1.5.6-dev2-kt2.0.0-Beta3"
r
try compiler
1.5.11-kt-2.0.0-RC1
m
r
try compose-plugin 1.6.2 as well
m
ok
r
I'm not sure about other dependencies. Perhaps not all are compatible with RC1.
m
i am getting problems with the dependencies I added.😶
not sure what to do now
a
You could try to use the
/build/kotlin-webpack/wasmJs/productionExecutable
directory.
m
it doesn;t have index.html file
r
I've just migrated my project o RC1 and it seems there is a new task -
wasmJsBrowserDistribution
. Have you tried this?
m
let me try this task
It worked thanks a lot
Check it out - https://iammohdzaki.github.io/KotLibs/ Just my images are not loaded need to check that