I’ve been stuck on this error for like 8 hours. I have a simple component
@Composable
fun EmailTextField() {
val viewModel = viewModel<AuthenticationViewModel>()
val text: String by viewModel.email.observeAsState("")
TextField(
value = text,
onValueChange = viewModel::setEmail,
label = { Text(text = "What's your email address?") },
placeholder = { Text(text = "<mailto:jane.doe@gmail.com|jane.doe@gmail.com>") },
keyboardType = KeyboardType.Email,
modifier = frameFillWidth(60.dp)
)
}
The context it’s called in is this:
@Composable
fun SignInEmailView() {
SingleInputLayout(
onBackClicked = {},
onNextClicked = {},
children = {
EmailTextField()
}
)
}
and I get the error:
e: java.lang.IllegalArgumentException: Unbound type parameters are forbidden: [Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterSymbolImpl@124a0920, Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterSymbolImpl@6e295b2d]
I’ve been able to isolate this error to the
EmailTextField
view and when I comment it out the error goes away. I’ve tried reproducing in a sample project but have been unable to do so. Does anything in the example I’ve provided seem off?
compose: 1.0.0-alpha04
kotlin: 1.4.10