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.

GraphQLScalarType error on 15.1.0

See original GitHub issue

It seems that an error about custom scalar type occurs in version 15.1.0. There was no problem at 15.0.0. (with https://github.com/taion/graphql-type-json)

src/schema/index.ts:25:9 - error TS2322: Type 'GraphQLScalarType' is not assignable to type 'GraphQLNamedType'.
  Type 'GraphQLScalarType' is not assignable to type 'GraphQLEnumType'.

25         GraphQLJSON,
           ~~~~~~~~~~~
src/schema/index.ts:26:9 - error TS2322: Type 'GraphQLScalarType' is not assignable to type 'GraphQLNamedType'.
  Type 'GraphQLScalarType' is not assignable to type 'GraphQLEnumType'.

26         GraphQLJSONObject,

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gtolarccommented, Jun 10, 2020

graphql-type-json v0.3.2 has just been released, and the related type error has been fixed.

0reactions
gtolarccommented, Jun 10, 2020

I solved it with the yarn resolutions method you gave me. Thanks for your advice. @danielrearden

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Yarn link: Importing graphql-js project into another ...
Cannot use GraphQLScalarType "Float" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules ...
Read more >
graphql - UNPKG
error /GraphQLError.mjs";. 8, import { GraphQLScalarType } from "./definition.mjs"; // As per the GraphQL Spec, Integers are only treated as valid when a ......
Read more >
Create custom GraphQL types | YLD Blog
We can type everything and make sure that if we say something is a string and it's not we will get an error....
Read more >
Unable to install iOS 15.1 on iPho… | Apple Developer Forums
I got this error with 15.1 and i had around 4 GB of space left after downloading the update, i deleted some apps...
Read more >
graphql - npm
var source = '{ BoyHowdy }'; graphql({ schema, source }).then((result) => { // Prints // { // errors: [ // { message: 'Cannot...
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