datocms / gatsby-source-datocms

Official GatsbyJS source plugin to pull content from DatoCMS
MIT License
140 stars 50 forks source link

TypeError: Site is not a constructor #27

Closed jarred closed 6 years ago

jarred commented 6 years ago

I get this error with a vanilla gatsby project, using the latest version of this plugin.

error Plugin gatsby-source-datocms returned an error
  TypeError: Site is not a constructor
  - createSiteNode.js:15 module.exports
    [gatsby-source-datocms]/createSiteNode.js:15:14

if I dig into createSiteNode.js the variable Site (used on line 15) is undefined. Both siteEntity and itemsRepo used in the constructor seem to be correct.

Is this an issue with datocms-client or this packages usage of it?

stefanoverna commented 6 years ago

Thanks for the report @jarred, fixed in v1.1.14