Hmmm, does the MPP webpack task not install transi...
# javascript
s
Hmmm, does the MPP webpack task not install transitive NPM dependencies of Kotlin modules correctly? For example, even with
implementation("org.jetbrains:kotlin-react:16.9.0-pre.83-kotlin-1.3.50")
I'm getting
Module not found: Error: Can't resolve 'react'
t
Declarations located in
jar
file. File downloaded from Maven repo as Maven artifact. NPM dependencies couldn't be declared in pom.xml.
s
Gradle plugin is looking for
package.json
inside maven artifact and will use it to import into the yarn workspace inside
packages_import
, so yarn should install all dependencies from that
package.json
Unfortunately
package.json
is not published in
org.jetbrains:kotlin-react:16.9.0-pre.83-kotlin-1.3.50
. We are planning to fix it
👍 1
s
@snrostov Does the gradle MPP plugin have this behavior currently (to deploy the package.json within the generated jar artifact)?
👍 1
s
Currently not, but it is planned.
👍 1