question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@Provides Directive Unexpected Error

See original GitHub issue

Reproduction Repo: https://github.com/ksaldana1/provides-fed-repro

I am pretty confused by what I am seeing here. I followed the example from the docs, and from what I can tell the structure I have isn’t any different from the example provided in the federation-demo, but maybe I’m missing something really obvious.

Despite me labeling my fields, I’m still getting error messages such as : UnhandledPromiseRejectionWarning: GraphQLSchemaValidationError: [users] Kitchen.name -> is marked as @external but is not used by a @requires, @key, or @provides directive.

This was happening on a larger project and seemed to continue when I scaled it down.

Thanks for all your hard work! Federation is really awesome!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ksaldana1commented, Jun 21, 2019

Thanks for getting this fixed @JakeDawkins ! The first time I read through the federation docs I thought “I don’t think I’ll need these advanced features…”, but then after I grokked them it felt hard to live without. So thanks for being one step ahead on the features!

1reaction
JannesVcommented, Jun 18, 2019

Thanks! I’ve just found out my error was due to my own ignorance. I forgot to specify the @key directive on the type I’m extending. When including that it resolved my issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught Error: Unexpected directive 'MyComboBox' ...
This error frequently comes up when we are not importing , providing , or declaring the angular modules , services , components properly....
Read more >
Syntax error, unexpected '<' on custom directive
Hi all! I would like to write a custom blade directive like this one: public function boot() { Blade::directive('f', function($fileReference) { return "" ......
Read more >
Fatal Error C1020
This error can occur if you have conditional preprocessor directives before you include a precompiled header file. The compiler ignores ...
Read more >
Introduction to Error Handling Help Docs
Error handling directives · Resume allows you to specify a substitute output for the module with the error and the scenario execution status...
Read more >
Common Nginx Syntax Errors
Nginx's unknown directive Error. As mentioned previously, the foundation of an Nginx configuration file is built on directives. Nginx has a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found