Router v1.60+ - " ERROR ... failed to initialize the query planner"

I am trying to run my supergraph on Router v1.60+ and I am getting the following error at start-up time. What can I do to resolve?

ERROR  could not create router: failed to initialize the query planner: Supergraphs composed with federation version 1 are not supported. Please recompose your supergraph with federation version 2 or greater
could not create router: failed to initialize the query planner: Supergraphs composed with federation version 1 are not supported. Please recompose your supergraph with federation version 2 or greater

As part of the transition to a Long Term Support version of GraphOS Router, the team has been working to deprecate the legacy query planner implementation which supported Federation v0.x, also referred to as Fed 1. In Router v1.60+ the only query planner option is the new Native Query Planner that only supports Fed 2+ and drops support for Fed 1.

You can read more about the details here: Migrate Apollo Federation 1.0 Supergraphs to Apollo Federation 2.0 | Apollo GraphQL Blog

You will first need to update your composition/build step of your supergraph from Fed 1 to Fed 2. You most likely do not need to change subgraphs, just the supergraph build step. Read more here: Moving to Apollo Federation 2 - Apollo GraphQL Docs

Then before upgrading your Router version, we recommend you use an earlier version like v1.59.2 and run in query planner comparison mode for the new Native Query Planner to validate your operations behave normally: Native Query Planner - Apollo GraphQL Docs

Then after that you will be free to adopt v1.60+ which only support Fed 2 going forward as well as the future Router v2+.