Skip to content

Commit db73242

Browse files
committed
Add the Wasm browser target explicitly to resolve an error
``` :compose-multiplatform-html-unified-material2 is not configured for JS usage ``` A related warning should also have been resolved: ``` w: ⚠️ JS Environment Not Selected ```
1 parent 609ba4b commit db73242

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

buildSrc/src/main/kotlin/common-conventions.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ kotlin {
3030
iosSimulatorArm64()
3131

3232
@OptIn(ExperimentalWasmDsl::class)
33-
wasmJs()
33+
wasmJs {
34+
browser()
35+
}
3436

3537

3638
// for JS and HTML wrappers
3739

38-
js()
40+
js {
41+
// The project works without this, but it can be added to avoid potential issues.
42+
browser()
43+
}
3944

4045

4146

0 commit comments

Comments
 (0)