My project is showing errors about context recevie...
# gradle
z
My project is showing errors about context receviers and expect actual classes being preview, but in my buildSrc plugin I have
Copy code
target.tasks.withType<KotlinCompile>().configureEach {
  compilerOptions {
    freeCompilerArgs.addAll("-Xexpect-actual-classes", "-Xcontext-receivers")
  }
}
I don't get what I'm doing wrong
v
Can you share a build
--scan
?
t
better to use since Kotlin 2.0.0:
Copy code
extensions.getByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>().compilerOptions.freeCompilerArgs.addAll(...)
z
oh that worked thank you
👌 1