Hey! What is the current status of `wasmJs` vs `wa...
# webassembly
c
Hey! What is the current status of
wasmJs
vs
wasmWasi
? Is it normal than when I had a
wasmJs
target, it breaks the
js
target?
Copy code
w: Please choose a JavaScript environment to build distributions and run tests.
Not choosing any of them will be an error in the future releases.
kotlin {
    js {
        // To build distributions for and run tests on browser or Node.js use one or both of:
        browser()
        nodejs()
        d8
    }
}
even though the
build.gradle.kts
is
Copy code
@OptIn(ExperimentalWasmDsl::class)
kotlin {
	jvm()
	js {
		browser()
		nodejs()
	}
	linuxX64()
	iosArm64()
	iosSimulatorArm64()
	iosX64()
	wasmJs("wasmBrowser")
    …
}
Oh, it's just the error message being broken, I see.
wasmJs
should also specify
browser()
etc
b
Please file an issue (cc @Ilya Goncharov [JB])