Hello <@U0234N0QYSK> I was upgrading the Compose D...
# compose-destinations
a
Hello @Rafael Costa I was upgrading the Compose Destinations library from 1.10.2 to 1.11.9 and encountered the error shown below. As I understand it, the issue arises because Compose Navigation is now version 2.8.6, where navigation is typed and Serializable, but destinations and graphs are not generated with Serializable. Is there a setting in your library that can be configured to create Serializable Destinations and NavGraphs? Or what workaround do you recommend for this issue? The only solution I found is passing string routes to navController.navigate instead of the graphs or destinations themselves. However, I wonder if there is a better solution to this. Thank you for your attention and for your library!
Copy code
FATAL EXCEPTION: main (Ask Gemini)
Process: com.wflow.app22.dev, PID: 22179
                                                                                                    kotlinx.serialization.SerializationException: Serializer for class 'LoginNavGraph' is not found.
Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.
TLDR, you need to call DestinationsNavigator navigate methods, not NavController.navigate.
a
Oh, okay, answer was under my nose, sorry for stupid question. And thank you!
r
no worries at all. thanks 🙂