I have a profile module with a few destinations. Inside that module i create
@NavGraph<ExternalModuleGraph> internal annotation class ProfileGraph then in app module i create a
`@NavGraph
internal annotation class ProfileGraph
@NavHostGraph
annotation class MainGraph {
@ExternalNavGraph<ProfileNavGraph>(start = true)
companion object Includes
}`
When i create the DestinationsNavHost( modifier = Modifier.fillMaxSize(), navGraph = MainGraph, navController = navController ) i get these error
Type mismatch. Required: NavHostGraphSpec /* = TypedNavHostGraphSpec<*> */ Found: MainGraph.Includes
I have a profile module with a few destinations. Inside that module i create
internal annotation class ProfileGraph
@NavHostGraph
annotation class MainGraph {
@NavGraph<ExternalModuleGraph> internal annotation class ProfileGraph
then in app module i create a`@NavGraph
}`
When i create the
DestinationsNavHost( modifier = Modifier.fillMaxSize(), navGraph = MainGraph, navController = navController )
i get these errorType mismatch. Required: NavHostGraphSpec /* = TypedNavHostGraphSpec<*> */ Found: MainGraph.Includes