java.lang.IllegalArgumentException: Navigation destination that matches route com.test.compose.Search/{"searchQuery":"test","filters":[""]} cannot be found in the navigation graph ComposeNavGraph(0x0) startDestination={Destination(0x56174464) route=com.test.compose.NavigationDestination.Home}
Giovanni Marques
10/17/2025, 6:14 PM
If I remove the
typeMap
I get the expected error that it
can't find the NavType for argument parameters of type SearchParameters
, but if I declare the nav type it opens the app, correctly calls the the methods on my custom NavType, but crashes saying that it couldn’t find the destination when I try to navigate
j
Jack Boswell
10/17/2025, 9:29 PM
It's definitely correct to not specify a type map here. What does your Search class and its dependencies look like? Did you add the kotlinx-serialization plugin to your project?
g
Giovanni Marques
10/20/2025, 10:25 AM
It was an issue with my NavType implementation. I hadn’t implemented the