"(0 , federation_internals_1.buildSupergraphSchema) is not a function or its return value is not iterable"

“(0 , federation_internals_1.buildSupergraphSchema) is not a function or its return value is not iterable”

Updating the @apollo/gateway to the latest version fixed this issue for me