PHondogo
07/21/2025, 8:15 PMTask `:my-project:jsBrowserProductionWebpack` of type `org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpack`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
hfhbd
07/21/2025, 8:24 PMAdam Semenenko
07/22/2025, 5:03 AMPHondogo
07/22/2025, 8:43 AMbrowser {
commonWebpackConfig {
configDirectory = File(
project.rootDir, // using project here causes error for configuration cache
"web/webpack")
}
}
PHondogo
07/22/2025, 8:45 AMbrowser {
val projectRootDir = project.rootDir // this works even inside browser section
commonWebpackConfig {
configDirectory = File(
projectRootDir,
"web/webpack")
}
}