GraphQLScalarType error on 15.1.0
See original GitHub issueIt 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

graphql-type-json v0.3.2 has just been released, and the related type error has been fixed.
I solved it with the yarn resolutions method you gave me. Thanks for your advice. @danielrearden