Is there anyone who can do me a favor? When I add the npm dependency for jsMain sourceset, all sourc...
r
Is there anyone who can do me a favor? When I add the npm dependency for jsMain sourceset, all sourcesets cannot be distinguished by the IDEA.
a
I am surprised how IDEA distinguished without the npm dependency. With the js target, make sure you have specified an environment
Copy code
kotlin {
  js {
    nodejs()
    browser()
  }
}
1
r
Thanks so much