Arjan van Wieringen
11/02/2023, 2:51 PMjava.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsBrowserDsl.commonWebpackConfig(kotlin.jvm.functions.Function1)'
at Build_gradle$2$1$1.invoke(build.gradle.kts:19)
at Build_gradle$2$1$1.invoke(build.gradle.kts:18)
js(IR) {
browser {
commonWebpackConfig {
cssSupport {
enabled.set(true)
}
}
}
binaries.executable()
}
Anton Lakotka [JB]
11/02/2023, 4:50 PMArjan van Wieringen
11/02/2023, 5:05 PMatyrin
11/02/2023, 5:26 PMkotlin-dsl
plugin that will generate required accessors or wrap the commonWebpackConfig body in Action()
Arjan van Wieringen
11/02/2023, 7:50 PMVaibhav
11/02/2023, 8:32 PMjs(IR) {
browser {
commonWebpackConfig(Action {
cssSupport {
enabled.set(true)
}
})
}
}
> Task :plugin-build:tailwind-kt:compileKotlin FAILED
3 actionable tasks: 1 executed, 2 up-to-date
e: file:///C:/Users/kizzy/IdeaProjects/tailwind-kt/plugin-build/tailwind-kt/src/main/kotlin/kizzy/tailwind/utils/SetupTailwindProject.kt:14:17 Unresolved reference: cssSupport
e: file:///C:/Users/kizzy/IdeaProjects/tailwind-kt/plugin-build/tailwind-kt/src/main/kotlin/kizzy/tailwind/utils/SetupTailwindProject.kt:15:21 Unresolved reference: enabled
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':plugin-build:tailwind-kt:compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
BUILD FAILED in 1s
Arjan van Wieringen
11/03/2023, 2:06 PMwebpackTask(Action {
cssSupport(Action {
enabled.set(true)
})
})
webpackTask(body = {
cssSupport(action = {
enabled.set(true)
})
})
So it is related to the SAM conventionVaibhav
11/03/2023, 5:46 PMArjan van Wieringen
11/03/2023, 8:40 PMIlya Goncharov [JB]
11/04/2023, 9:18 AMkotlin-dsl
plugin applied. From my side, I'll take a look, and possibly it is useful to return back lamda-based dsl functionsVaibhav
11/14/2023, 4:16 AMArjan van Wieringen
11/14/2023, 6:33 AMVaibhav
11/14/2023, 10:15 AM