Alex Edwards
11/01/2021, 9:51 PM> Task :idmapi-entrypoints:compileProductionExecutableKotlinJs FAILED
e: java.lang.IllegalStateException: Not found Idx for private com.mypackage/|null[0]:40
at org.jetbrains.kotlin.backend.common.serialization.IrFileDeserializer.loadTopLevelDeclarationProto(IrFileDeserializer.kt:48)
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)
com.mypackage
is another of my projects that this project depends on i have also compiled it with js(IR)
but the issue could be that i’m still missing something there but its unclear from this errorturansky
11/01/2021, 10:29 PMAlex Edwards
11/01/2021, 11:20 PM1.5.31
gradle plugin it does look like there might be a minor version difference with org.jetbrains.kotlinx:kotlinx-serialization-json
with 1.2.1
& 1.3.0
Alex Edwards
11/01/2021, 11:20 PMturansky
11/01/2021, 11:57 PMturansky
11/01/2021, 11:57 PM1.3.0
for bothturansky
11/01/2021, 11:58 PMDo yo know what this error means?Non-synchronized versions - first candidate
Alex Edwards
11/02/2021, 2:15 AMNPM dependencies should be resolved
Alex Edwards
11/02/2021, 3:17 PMprivate const val A_CONST = 100
expect class MyClient(env: Deferred<Map<String, String>>) {
fun myMethod(aParam: Int = A_CONST)
}
This code generated a module_0 file that just contained the constant and nothing else. Removing the constant and replacing with the following fixed it
expect class MyClient(env: Deferred<Map<String, String>>) {
fun myMethod(aParam: Int = 100)
}
I think this is probably an IR/JS bug?turansky
11/02/2021, 3:28 PMandylamax
11/03/2021, 6:09 AMAlex Edwards
11/03/2021, 2:08 PM