Task :composeApp:compileDevelopmentExecutableKotlinWasmJs FAILED
e: Module "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel" has a reference to symbol androidx.annotation/MainThread.|(){}[0]. Neither the module itself nor its dependencies contain such declaration.
'''
This could happen if the required dependency is missing in the project. Or if there is a dependency of "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel" that has a different version in the project than the version that "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
I am trying to use viewModel with only wasmJs but having this error when I run the application
please help me resolve this
'''
This could happen if the required dependency is missing in the project. Or if there is a dependency of "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel" that has a different version in the project than the version that "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
I am trying to use viewModel with only wasmJs but having this error when I run the application please help me resolve this
this is my composeApp build.gradle.kts