benjaminhoffman/gatsby-plugin-mailchimp

Multiple SiteTitleQuery getting picked up in Netlify builds causes it to fail

Closed this issue · 1 comments

Getting this error in Netlify all of a sudden using Gatsby v2.

2:55:32 PM: warning Using the global `graphql` tag is deprecated, and will not be supported in v3.
2:55:32 PM: Import it instead like:  import { graphql } from 'gatsby' in file:
2:55:32 PM: /opt/build/repo/node_modules/gatsby-plugin-mailchimp/examples/gatsby-v1/src/layouts/index.js
2:55:42 PM: error #85901 GRAPHQL
2:55:42 PM: There was an error in your GraphQL query:
2:55:42 PM: Error: RelayParser: Encountered duplicate defintitions for one or more documents: each document must have a unique name. Duplicated documents:
2:55:42 PM: - SiteTitleQuery

I forked the project and nuked the /examples folder and it worked for me after that.

https://github.com/stemmlerjs/gatsby-plugin-mailchimp

correct. this is the fix. #40