(www) Conflicting types on dot-org graphql schema
See original GitHub issueDescription
warn There are conflicting field types in your data.
If you have explicitly defined a type for those fields, you
can safely ignore this warning message.
Otherwise, Gatsby will omit those fields from the GraphQL
schema.
NPMPackage.types.ts:
- type: boolean
value: false
- type: string
value: 'included'
Steps to reproduce
Run gatsby develop
on www
.
Expected result
No warnings.
Actual result
The above warning.
Environment
System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.1 - /usr/local/bin/node
Yarn: 1.19.1 - ~/.yarn/bin/yarn
npm: 6.13.6 - /usr/local/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 79.0.3945.130
Firefox: 70.0.1
Safari: 13.0.4
npmPackages:
gatsby: ^2.18.8 => 2.18.22
gatsby-design-tokens: ~1.0.10 => 1.0.10
gatsby-image: ^2.2.34 => 2.2.38
gatsby-plugin-canonical-urls: ^2.1.16 => 2.1.19
gatsby-plugin-catch-links: ^2.1.19 => 2.1.24
gatsby-plugin-emotion: ^4.1.16 => 4.1.21
gatsby-plugin-feed: ^2.3.23 => 2.3.26
gatsby-plugin-google-analytics: ^2.1.29 => 2.1.33
gatsby-plugin-google-tagmanager: ^2.1.18 => 2.1.24
gatsby-plugin-guess-js: ^1.1.26 => 1.1.29
gatsby-plugin-layout: ^1.1.16 => 1.1.21
gatsby-plugin-mailchimp: ^2.2.3 => 2.2.3
gatsby-plugin-manifest: ^2.2.31 => 2.2.37
gatsby-plugin-mdx: ^1.0.59 => 1.0.67
gatsby-plugin-netlify: ^2.1.28 => 2.1.31
gatsby-plugin-netlify-cache: ^0.1.0 => 0.1.0
gatsby-plugin-nprogress: ^2.1.15 => 2.1.18
gatsby-plugin-offline: ^3.0.27 => 3.0.31
gatsby-plugin-react-helmet: ^3.1.16 => 3.1.21
gatsby-plugin-sharp: ^2.3.5 => 2.3.13
gatsby-plugin-sitemap: ^2.2.22 => 2.2.25
gatsby-plugin-theme-ui: ^0.2.43 => 0.2.53
gatsby-plugin-twitter: ^2.1.15 => 2.1.18
gatsby-plugin-typography: ^2.3.18 => 2.3.21
gatsby-remark-autolink-headers: ^2.1.19 => 2.1.23
gatsby-remark-code-titles: ^1.1.0 => 1.1.0
gatsby-remark-copy-linked-files: ^2.1.31 => 2.1.36
gatsby-remark-embedder: ^1.11.0 => 1.7.0
gatsby-remark-graphviz: ^1.1.18 => 1.1.21
gatsby-remark-images: ^3.1.35 => 3.1.42
gatsby-remark-normalize-paths: ^1.0.0 => 1.0.0
gatsby-remark-prismjs: ^3.3.25 => 3.3.30
gatsby-remark-responsive-iframe: ^2.2.28 => 2.2.31
gatsby-remark-smartypants: ^2.1.17 => 2.1.20
gatsby-source-airtable: ^2.0.12 => 2.0.12
gatsby-source-filesystem: ^2.1.40 => 2.1.46
gatsby-source-git: ^1.0.2 => 1.0.2
gatsby-source-npm-package-search: ^2.1.19 => 2.1.22
gatsby-transformer-csv: ^2.1.19 => 2.1.24
gatsby-transformer-documentationjs: ^4.1.20 => 4.1.23
gatsby-transformer-remark: ^2.6.39 => 2.6.48
gatsby-transformer-screenshot: ^2.1.44 => 2.1.49
gatsby-transformer-sharp: ^2.3.7 => 2.3.12
gatsby-transformer-yaml: ^2.2.18 => 2.2.23
npmGlobalPackages:
gatsby-cli: 2.8.26
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
There are conflicting field types in your data. GraphQL schema ...
Summary I have some variables named payload and returnType, but they are just javascript objects, which I'm passing down as context when ...
Read more >Conflicts for types - Advanced GraphQL
Example 3: Merging schemas with naming conflicts for types. Consider the following two schemas: Schema A : const typeDefs = ` type Query...
Read more >GraphQL union and conflicting types - Stack Overflow
Teaser & Program have the same title field with a different type ( String vs String! ) Here is parts from Zone ,...
Read more >How to fixed GraphQl Fields conflicting types. Use different ...
Fields conflict because they return conflicting types. Use different aliases on the fields to fetch both if this was intentional.
Read more >Schemas and Types - GraphQL
Character is a GraphQL Object Type, meaning it's a type with some fields. Most of the types in your schema will be object...
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 FreeTop 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
Top GitHub Comments
Hi, I would like to take this one. I’ll assign it to me 🙂
@muescha after reading the code I realized the error says what the problematic property/field is:
NPMPackage.types.ts
, thattypes.ts
is the field with the problem.The problem is that the field
ts
fromAlgolia
comes with the values specified in the error: sometimes the string'included'
others the booleanfalse
. I haven’t found much info about this field on the internet but it looks like the only two possible values are'included'
orfalse
, so, we could change that'included'
totrue
unless someone knows about another possible string value different that'included'
. Or we could do the inverse and changefalse
to some string like'notIncluded'
.Since we moved the source for the website this isn’t a concern for
www
anymore. However, the source plugin itself could get this improvement (and another fix). I opened a new issue for it, @jzabala if you want to tackle it let us know in the issue: https://github.com/gatsbyjs/gatsby/issues/26836