Franklin
02/08/2024, 12:51 AM./gradlew jsRun
I get the following in 🧵Franklin
02/08/2024, 12:51 AM* What went wrong:
Configuration cache state could not be cached: field `apiConfiguration` of `org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.DefaultKotlinCompilationConfigurationsContainer` bean found in field `dependencyConfigurations` of `org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl$Params` bean found in field `params` of `org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl` bean found in field `$$delegate_0` of `org.jetbrains.kotlin.gradle.plugin.mpp.KotlinCommonCompilation` bean found in field `underlying` of `org.jetbrains.kotlin.gradle.utils.MutableObservableSetImpl` bean found in field `compilations` of `org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet` bean found in field `value` of `org.jetbrains.kotlin.tooling.core.Extras$Entry` bean found in field `extras` of `org.jetbrains.kotlin.tooling.core.MutableExtrasImpl` bean found in field `extras` of `org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl` bean found in field `$$delegate_0` of `org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation` bean found in field `map` of `org.gradle.api.internal.DefaultNamedDomainObjectCollection$UnfilteredIndex` bean found in field `index` of `org.gradle.api.internal.FactoryNamedDomainObjectContainer` bean found in field `compilations` of `org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget` bean found in field `target` of `org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation` bean found in field `underlying` of `org.jetbrains.kotlin.gradle.utils.MutableObservableSetImpl` bean found in field `compilations` of `org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet` bean found in field `value` of `org.jetbrains.kotlin.tooling.core.Extras$Entry` bean found in field `extras` of `org.jetbrains.kotlin.tooling.core.MutableExtrasImpl` bean found in field `extras` of `org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl` bean found in field `$$delegate_0` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrCompilation` bean found in field `compilation` of `org.jetbrains.kotlin.gradle.targets.js.npm.resolver.KotlinCompilationNpmResolver` bean found in field `byCompilation` of `org.jetbrains.kotlin.gradle.targets.js.npm.resolver.KotlinProjectNpmResolver` bean found in field `projectResolvers` of `org.jetbrains.kotlin.gradle.targets.js.npm.resolver.KotlinRootNpmResolver` bean found in field `resolver` of `org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension` bean found in field `nodeJs` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinBrowserJsIr` bean found in field `value` of `kotlin.InitializedLazyImpl` bean found in field `browser$delegate` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrTarget` bean found in field `this$0` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrTarget$commonLazy$2$1$1` bean found in field `function` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrTarget$sam$org_gradle_api_Action$0` bean found in field `val$action` of `org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1` bean found in field `delegate` of `org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction` bean found in field `val$action` of `org.gradle.api.internal.collections.CollectionFilter$1` bean found in field `multipleActions` of `org.gradle.internal.ImmutableActionSet$SetWithManyActions` bean found in field `addActions` of `org.gradle.api.internal.collections.DefaultCollectionEventRegister` bean found in field `eventRegister` of `org.gradle.api.internal.DefaultDomainObjectSet` bean found in field `$$delegate_0` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsBinaryContainer` bean found in field `binaries` of `org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrCompilation` bean found in field `compilation` of task `:jsNodeDevelopmentRun` of type `org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsExec`: error writing value of type 'org.gradle.api.internal.artifacts.configurations.DefaultConfiguration'
> Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false'.
Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'metadataCompilationApi' should be resolved.
Franklin
02/08/2024, 12:51 AMbuild.gradle.kts
is
plugins {
alias(libs.plugins.kotlinMultiplatform)
}
kotlin {
js {
binaries.executable()
nodejs()
}
jvm {
}
sourceSets {
val commonMain by getting {
dependencies {
}
}
val commonTest by getting {
dependencies {
implementation(libs.kotlin.test)
}
}
val jsMain by getting {
dependencies {
// implementation(npm("puppeteer", "^22.0.0"))
}
}
}
}
Franklin
02/08/2024, 1:18 AMCLOVIS
02/08/2024, 10:25 AMorg.gradle.configuration-cache=false
in gradle.properties
, but don't forget to report the problem to the Kotlin team so they can fix it for everyone.