```> Task :compileKotlinJs FAILED e: java.lang....
# javascript
p
Copy code
> Task :compileKotlinJs FAILED
e: java.lang.IllegalArgumentException: Failed requirement.
        at org.jetbrains.kotlin.backend.common.serialization.IrDeclarationDeserializer.deserializeIrTypeAlias(IrDeclarationDeserializer.kt:368)
        at org.jetbrains.kotlin.backend.common.serialization.IrDeclarationDeserializer.deserializeDeclaration(IrDeclarationDeserializer.kt:752)
        at org.jetbrains.kotlin.backend.common.serialization.IrFileDeserializer.deserializeDeclaration(IrFileDeserializer.kt:39)
        at org.jetbrains.kotlin.backend.common.serialization.FileDeserializationState.deserializeAllFileReachableTopLevel(IrFileDeserializer.kt:139)
        at org.jetbrains.kotlin.backend.common.serialization.ModuleDeserializationState.deserializeReachableDeclarations(BasicIrModuleDeserializer.kt:172)
        at org.jetbrains.kotlin.backend.common.serialization.BasicIrModuleDeserializer.deserializeReachableDeclarations(BasicIrModuleDeserializer.kt:148)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.deserializeAllReachableTopLevels(KotlinIrLinker.kt:102)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.findDeserializedDeclarationForSymbol(KotlinIrLinker.kt:121)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.getDeclaration(KotlinIrLinker.kt:159)
How can I figure out which requirement? I can't find the
IrDeclarationDeserializer.kt
source using google. Btw, it started happnening when I changed my custom Material UI wrapper for Muirwik. It seems totaly unrelated, but I can reliably reproduce it by just changing git branches. Oh, and I just have 2 simple data classes marked as
@Serializable
.
a
I have been experiencing these bugs since kotlin 1.5.20, 1.5.21 and 1.5.30-M1. Check to see if that code passes with Kotlin 1.5.10. Also, it usually throw errors if any of your dependency was built with the kotlin versions mentioned above
🤔 1
p
r
It's a compiler bug, your best bet is to make a youtrack issue
(any stack traces from compile or link tasks with
org.jetbrains.kotlin
are generally compiler issues)