If I have a shared source set between js and wasmJ...
# webassembly
e
If I have a shared source set between js and wasmJs,
kotlinx.browser.*
doesn't resolve in the IDE. Is there something I have to set to get that to work, or does it currently not work in shared source sets?
r
It doesn't work and probably won't be anytime soon. See my question: https://kotlinlang.slack.com/archives/CDFP59223/p1701875444502719
e
So the solution for the meantime would be to define the constructs that we need in our own projects and use those?
Or was Slava saying that the trick you are using with
@Suppress("EXPECTED_EXTERNAL_DECLARATION")
won't work anymore with k2?
you will probably have issues when compiling with K2, as they are not declared as proper
expect
-
actual
in stdlib.
r
I've opened an issue and hope it will be allowed without suppressing https://youtrack.jetbrains.com/issue/KT-64214
Please vote plus1
For now it seems to work fine and I'm already using K2.
👍 1