I try to use MPP. And I have several JS targets, s...
# announcements
u
I try to use MPP. And I have several JS targets, so my common sourseSet use JS specific code too. But IDEA don't recognise those common source sets as JS-specific. Is there any solution to work in IDEA with such project?
k
Either your common sourceset is common or it's JS, which is it? If it's the former obviously you can't use JS specific things.
u
@karelpeeters JS, Native and JVM are multiplatforms themselves. JS are common in my project. You can write with only JS for the web, for servers and for mobile devices. You can write with only Native under even more number of platforms. Also some sourceSet could be common only for several targets (not for all) in project. But all this does not answer my question. But someone says that Gradle supports it, but it doesn’t supported by IDEA. And without supporting such feature in IDEA it's unreal to work with such project. So I'm looking for any workaround.
a
Note: this is a known problem and we're working on it: https://youtrack.jetbrains.com/issue/KT-28194 (see also https://youtrack.jetbrains.com/issue/KT-27801)