Cleveland Shaw
10/10/2023, 3:12 PMLeandro Borges Ferreira
10/10/2023, 4:19 PM1.5.2.1-Beta
looks odd. I think you should use 1.5.3
or 1.5.2
take a look: https://mvnrepository.com/artifact/org.jetbrains.compose.runtime/runtime-desktopbuild.gradle.kts
. Like this:
plugins {
id("org.jetbrains.compose") version("1.5.2") apply false
}
Cleveland Shaw
10/10/2023, 4:23 PMgradle.properties
i done the following
compose.version=1.5.10-beta02
compose.compiler=1.5.2.1-Beta3
Then in build.gradle.kt
i done below
val isComposeCompiler = requested.module.group.startsWith("org.jetbrains.compose.compiler")
if (isComposeCompiler) {
val composeCompiler = project.property("compose.compiler") as String
useVersion(composeCompiler)
}
Leandro Borges Ferreira
10/10/2023, 6:57 PMCleveland Shaw
10/10/2023, 10:09 PMModule not found: Error: Can't resolve 'skia'
Is skia
required to get the web version to work, if yes how can I go about resolving this.
Also, how can I bypass this warning screen in chrome browser screenshot below (and go to the compose UI)
PLEASE NOTE: i am using MacOS
Thanks In advanceLeandro Borges Ferreira
10/10/2023, 10:34 PMskia
script in your index.html
file? I didn't have this problem when i was trying to make it work, so I'm not sure.
About the warning, just configure Google Chrome like it suggests in the logs. You'll have enable garbage collection for webassembly.
One solution is to take a look in another example and see how it works... then you can compare both of them to understand the configuration.
I just configured the web app in a project that I'm working: https://github.com/leandroBorgesFerreira/Writeopia. If you run: ./gradlew jsBrowserRun
it should start the webapp. It works just fine on my side and I'm also using macOS haha. Maybe this can help you.Cleveland Shaw
10/10/2023, 10:41 PMOleksandr Karpovich [JB]
10/12/2023, 10:45 AMCleveland Shaw
10/12/2023, 3:23 PMconfig.js
inside webpack.config.d
, this did not work, so i tried to load the config.js
inside index.html
like this <script src="config.js"></script>
and still no result.
2. I have clone the latest main branch from here: https://github.com/Kotlin/kotlin-wasm-examples and still no result. still showing the index.html
view instead of the Compose View. I tried these projects compose-jetsnack
, compose-imageviewer
and browser-example
but still showing the index.html
view, please see attachment for screenshot.
Ideally I would like to get the web version working as I would love to use it as a template but struggling to achieve this, please assist me with a template that works with jetpack compose for the WEB
PLEASE NOTE: I am a Android developer, i am just trying to learn the WEB with Jetpack Compose
Thanks In AdvanceOleksandr Karpovich [JB]
10/12/2023, 4:16 PMCleveland Shaw
10/12/2023, 4:39 PMOleksandr Karpovich [JB]
10/12/2023, 4:43 PM