When running rover dev for the first time I get an UNKOWN error not present on the docs. Using rover version 0.10.0
❯❯ lift-off-supergraph-demo-tracks main ≡ +1 ~4 10:49 rover dev
🕸️ what URL is your subgraph running on?: http://localhost:4001
🧑 what is the name of this subgraph?: tracks
WARN: could not detect a schema in the current working directory. to watch a schema, pass the `--schema <PATH>` argument
👂 polling http://localhost:4001/ every 1 second
⚠️ Do not run this command in production! ⚠️ It is intended for local development.
🛫 starting a session with the 'tracks' subgraph
🎶 composing supergraph with Federation v2.1.4.exe
error[E029]: Encountered 1 build error while trying to build a supergraph.
Caused by:
UNKNOWN: [tracks] Invalid definition for directive "@federation__shareable": "@federation__shareable" should not be repeatable
The subgraph schema you provided is invalid. See https://www.apollographql.com/docs/federation/errors/ for more information on resolving build errors.
Was able to “solve” the problem by starting the users subgraph before (which worked correctly) and then running the tracks subgraph (basically opposite order to tutorial).
I believe we’ve narrowed down the issue. Can y’all make sure to install the latest version of the @apollo/subgraph package? It should be on version 2.2.1. Let me know if that fixes the issue and allows rover dev to run successfully.
@kadito - Rover should be on the latest version (v0.10.0). Though I’ve only investigated the use of rover dev here, not rover supergraph compose. Can you provide your code?
Hey @mbushpilot2b ! Yes, I do see how that warning can feel like something is wrong… However, rover dev is working fine if the last output says something about your supergraph running and you’re able to query it!