can really make your day so bad.
I am currently getting this error
Copy code
e: java.lang.IllegalStateException: Variable name is not found user
at org.jetbrains.kotlin.ir.backend.js.utils.JsGenerationContext.getNameForValueDeclaration(JsGenerationContext.kt:65)
at org.jetbrains.kotlin.ir.backend.js.transformers.irToJs.IrElementToJsExpressionTransformer.visitGetValue(IrElementToJsExpressionTransformer.kt:106)
. . .
It is a kotlin compiler error. Has anyone being getting this?
It worked a few minutes ago. I ddn't change any dependencies. Using Kotlin 1.5.30
andylamax
09/30/2021, 12:51 AM
For some reasons. This was what was breaking my code.
Copy code
abstract class UsersService {
abstract fun createIfNotExist(params: CreateUserParams): Later<User>
abstract fun register(
user: RegisterUserParams,
space: RegisterSpaceParams = RegisterSpaceParams(user.name) // WHAT BREAKS
): Later<LoginConundrum>
}