thumbtack / thumbprint

Thumbprint is the design system at Thumbtack.
https://thumbprint.design
Apache License 2.0
201 stars 27 forks source link

GraphQL error when running Gatsby #336

Open lavelle opened 5 years ago

lavelle commented 5 years ago
warn Multiple node fields resolve to the same GraphQL field
warn Multiple node fields resolve to the same GraphQL field
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.

If you know all field types in advance, the best strategy is to explicitly define them
DefaultJson.author:
 - type: object
   value: { name: 'Daniel O\'Connor', email: 'daniel@danoc.me', url:
'https://danoc.me/' }
   source: File "../packages/thumbprint-codemods/package.json"
 - type: string
   value: 'Daniel O\'Connor <daniel@danoc.me>'
ThumbprintComponent.author:
 - type: object
   value: { name: 'Daniel O\'Connor', email: 'daniel@danoc.me', url:
'https://danoc.me/' }
   source: File "../packages/thumbprint-react/package.json"
 - type: string
   value: 'Tom Genoni <tom@thumbtack.com>'
ThumbprintToken.tokens.value.web:
 - type: number
   value: 1025
   source: File "../packages/thumbprint-tokens/src/tokens/breakpoint.json"
 - type: string
   value: '4px'
   source: File "../packages/thumbprint-tokens/src/tokens/border-radius.json"
ComponentProp.doclets.value:
 - type: boolean
   value: true
   source: File "../packages/thumbprint-react/components/Input/index.jsx"
 - type: string
   value: 'Use `src` instead of `url`.'
   source: File "../packages/thumbprint-react/components/ServiceCard/index.jsx"
ComponentProp.parentType.value:
 - type: [object]
   value: [ { value: '\'bottom\'', computed: false }, ... ]
   source: File "../packages/thumbprint-react/components/BlockList/index.jsx"
 - type: object
   value: { name: 'number' }
   source: File "../packages/thumbprint-react/components/InputRow/index.jsx"
 - type: string
   value: 'Date'
   source: File "../packages/thumbprint-react/components/DatePicker/index.jsx"
ComponentProp.type.value:
 - type: [object]
   value: [ { value: '\'bottom\'', computed: false }, ... ]
   source: File "../packages/thumbprint-react/components/BlockList/index.jsx"
 - type: object
   value: { name: 'number' }
   source: File "../packages/thumbprint-react/components/InputRow/index.jsx"
 - type: string
   value: 'Date'
   source: File "../packages/thumbprint-react/components/DatePicker/index.jsx"
danoc commented 5 years ago

I dug into this last August, but the issue is not yet fixed in Gatsby: https://github.com/gatsbyjs/gatsby/issues/7027.

Happy to have someone dig into this, but it will require a deep-dive into the Gatsby internals to fix.