Hello! How to connect multiplatform module to JS m...
# multiplatform
a
Hello! How to connect multiplatform module to JS module, if multiplatform module has several JS targets?
Copy code
kotlin {
    js("nodeJs"){
        nodejs()
    }

    js {
        browser()
    }
...
}
Now, I get error:
Copy code
Could not determine the dependencies of task ':app:fullstack-js:client:browserDevelopmentRun'.
> Could not resolve all task dependencies for configuration ':app:fullstack-js:client:compileClasspath'.
   > Could not resolve project :app:fullstack-js:domain.
     Required by:
         project :app:fullstack-js:client
         project :app:fullstack-js:client > project :app:fullstack-js:feature
      > Cannot choose between the following variants of project :app:fullstack-js:domain:
          - jsApiElements
          - nodeJsApiElements
        All of them match the consumer attributes:
          - Variant 'jsApiElements':
              - Required org.gradle.usage 'kotlin-api' and found compatible value 'kotlin-api'.
              - Found org.jetbrains.kotlin.localToProject 'public' but wasn't required.
              - Required org.jetbrains.kotlin.platform.type 'js' and found compatible value 'js'.
          - Variant 'nodeJsApiElements':
              - Required org.gradle.usage 'kotlin-api' and found compatible value 'kotlin-api'.
              - Found org.jetbrains.kotlin.localToProject 'public' but wasn't required.
              - Required org.jetbrains.kotlin.platform.type 'js' and found compatible value 'js'.