Hi all. I'm running into this internal compiler er...
# javascript
x
Hi all. I'm running into this internal compiler error when trying to build my compose-web project.
Copy code
e: java.lang.AssertionError: Assertion failed
	at org.jetbrains.kotlin.ir.backend.js.transformers.irToJs.JsAstUtilsKt.checkOnNullability(jsAstUtils.kt:451)


Execution failed for task ':app:web:compileDevelopmentExecutableKotlinJs'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Internal compiler error. See log for more details
Seems to have originated when I bumped ktor to
3.0.0-rc1
but not sure Any clue as to what is going on? Full stacktrace on 🧵
stacktrace.txt
reproducer here
e
You should report this to YT, as the compiler shouldn't fail like that.
Could you try clearing the Gradle cache and disabling KJS incremental compilation?
👍 1
x
Thanks @Edoardo Luppi whats the flag on
gradle.properties
to disable incremental compilation?
e
Copy code
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir> = false
You can set these three to be sure
Copy code
kotlin.incremental.js = false
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir> = false
kotlin.incremental.js.klib = false
👍 1
x
Ok bumping to kotlin 2.0.20 seems to somehow fixed this. False alarm 🙂 Thanks anyways @Edoardo Luppi
gratitude thank you 1