alexlobera / gatsby-source-sanity-transform-images

Gatsby plugin
https://www.gatsbyjs.org/packages/gatsby-source-sanity-transform-images/
19 stars 7 forks source link

Add namespace to graphql type declaration #8

Closed maru3l closed 4 years ago

maru3l commented 4 years ago

I've made this modification to prevent the type name to make a conflict with other.

I've got this issue when this plugin was install with gatsby-transformer-sharp. I was getting a error on startup of Gatsby develop saying that the type name can't be defined twice.

zaninime commented 4 years ago

Thanks for submitting this. I ran in the same problem yesterday.

svenpeeters commented 4 years ago

Can somebody take a look at this PR?

zaninime commented 4 years ago

I just published @zaninime/gatsby-source-sanity-transform-images as a drop-in replacement (well, you have to change the gatsby-config.js and put the prefix) with this patch applied.

maru3l commented 4 years ago

thanks @alexlbr

alexlobera commented 4 years ago

thank you @maru3l for working on this. Good work! Sorry I didn't have time to look at this before. A new version has been published to npm