Hi, I've upgraded to 3.3.1 and my build fails with...
# npm-publish
a
Hi, I've upgraded to 3.3.1 and my build fails with an error
Copy code
Configuration cache state could not be cached: field `__extraDependencies$npm_publish_gradle_plugin__` of task `:picortex-sdk-react:assembleJsPackage` of type `dev.petuska.npm.publish.task.NpmAssembleTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultListProperty'
> Unable to process file: /media/andylamax/Auxilliary/Workspace/PiCortex/home/picortex/sdk/react/build/tmp/jsPublicPackageJson/package.json
This all happens during configuration phase (before execution phase)
b
Hmm, any chance you could provide a repro? As a tmp workaround you could disable configuration cache or downgrade the plugin.
Which kotlin version are you on? I wonder if they've changed how kjs plugin spits out package.json file again.
a
Just noticed it works if configuration-cache is disable 😔
b
Of course. It was already supporting it, but looks like recent changes broke it
That's why repro and kotlin/gradle versions are crucial to know to bring it back
a
I am using KGP 1.9.0 and Gradle 8.2, also moved from the
kotlin("js")
plugin into the
kotlin("multiplatform")
plugin as it has been deprecated