Lift-off: destination supergraph - rover dev UNKNOWN error

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).

Hey @AGM! Thanks for bringing this to our attention, I’m also getting the same error. Checking in with the team to see what’s up. Hang tight!

1 Like

I have the same issue. :smile: Waiting for the answer. Thanks btw.

Same issue here. When I try to create the supergraph.yml with
rover subgraph compose

I am getting the following error

UNKNOWN: [XXXXX] Invalid definition for directive "@shareable": "@shareable" should not be repeatable

Already tried it with the following Rover versions

  • v0.7.0 (used on deployment process and locally)
  • v0.10.0 (locally)
  • v0.9.0 (locally)

Any idea why?

Hey @AGM and @AndyLab9596 ,

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?

I am on @apollo/subgraph ^2.2.1 and having this same issue.

WARN: could not detect a schema in the current working directory. to watch a schema, pass the `--schema <PATH>` argument

Just installed Rover for the first time too. Its version Rover 0.10.0

Just using rover dev

I just realized even the documentation here, shows the same warning, and I am able to query my graph at port 3000 (super-graph port)

1 Like

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!

1 Like

Yes! Its running fine :slight_smile: