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.

Another compilation issue reported as a bug

See original GitHub issue
It looks like you may have hit a bugin graphql-schema-linter.

It would be super helpful if you could report this here: https://github.com/cjoudrey/graphql-schema-linter/issues/new

Error: Expected Interface type.
    at invariant (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/jsutils/invariant.js:19:11)
    at produceInterfaceType (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/utilities/buildASTSchema.js:260:83)
    at /usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/utilities/buildASTSchema.js:334:14
    at Array.map (native)
    at makeImplementedInterfaces (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/utilities/buildASTSchema.js:333:45)
    at interfaces (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/utilities/buildASTSchema.js:312:16)
    at resolveThunk (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/type/definition.js:169:40)
    at defineInterfaces (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/type/definition.js:331:20)
    at GraphQLObjectType.getInterfaces (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/type/definition.js:315:52)
    at typeMapReducer (/usr/src/app/node_modules/graphql-schema-linter/node_modules/graphql/type/schema.js:205:23)
# test.schema

schema {
  viewer: Viewer
}

type Person {
  email: String
}

# Error triggered because of this.
type Viewer implements Person {
  email: String
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mscharleycommented, Nov 27, 2017

No problem! Just reporting things as I run into them. In my case the Person type has moved back and forth between an interface and a type a few times while we design the schema and I forgot that we last settled on a type.

0reactions
cjoudreycommented, Jan 16, 2019

Will be fixed in next release by #163.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compilation error - Wikipedia
Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors...
Read more >
7 types of software bugs and errors | The Jotform Blog
Knowing about the different types of software bugs can help you quickly ... Compiling programs typically indicate where a syntax error has ...
Read more >
Bug ID: JDK-8155701 The compiler fails with an AssertionError
x86_64 #1 SMP Fri Nov 21 22:39:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux A DESCRIPTION OF THE PROBLEM : Javac fails with an...
Read more >
Xcode 14 update has bugs and my co… - Apple Developer
The same code is compiling on other platforms such as windows and in online compilers. Error:- 0 0x1029141a0 __assert_rtn + 140 1 0x10279ba8c ......
Read more >
Known issues caused by compiler bugs - Geos-chem
Not a compiler bug per se, but Intel Fortran v17 chokes when encountering subroutines (with OPTIONAL arguments) that are included in an ...
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