cosmicjs / gatsby-source-cosmicjs

DEPRECATED Follow the link below to the new source plugin
https://www.npmjs.com/package/@cosmicjs/gatsby-source-cosmic
MIT License
8 stars 10 forks source link

Upgrade from 0.0.6 to 1.0.0 breaks Gatsby build #9

Closed tekhaus closed 5 years ago

tekhaus commented 5 years ago

⠋ Add inferred types

ERROR

Syntax Error: Unexpected Name "CosmicjsBasic"

GraphQLError: Syntax Error: Unexpected Name "CosmicjsBasic"

============== The underlying object type is "Basic Pages" with a slug of basic-pages. Removing this object type let's the build complete. All other object types are single words with no hyphens, so I'm guessing the @1.0.0 update is erroneously trimming the slug from the dash onward.

tonyspiro commented 5 years ago

Thank @tekhaus, we're looking into this now.

tonyspiro commented 5 years ago

Hey @tekhaus, this should now be fixed in the latest version v1.0.2 Can you please test and confirm?

tekhaus commented 5 years ago

Tested, and I had to lowercase the word after the hyphen (allCosmicjsBasicPages => allCosmicjsBasicpages) for this update to work, which is fine if that's intended.

Thanks for the quick fix!

tonyspiro commented 5 years ago

You're right, this was messing up the camelCase, this is now fixed in v1.0.3 Can you please confirm @tekhaus?

tekhaus commented 5 years ago

Looks good!