gatsby-source-datocms icon indicating copy to clipboard operation
gatsby-source-datocms copied to clipboard

Dependencies and peer-dependencies are incorrect

Open donaldboulton opened this issue 2 years ago • 3 comments

The below Gatsby plugins should be in dependencies. as well as React and React Dom

"gatsby": "^4.24.0 || ^5.0.0", "gatsby-plugin-image": "^2.0.0 || ^3.0.0", "gatsby-plugin-sharp": "^4.0.0 || ^5.0.0", "gatsby-transformer-remark": "^5.0.0 || ^6.0.0",

preDependencies are totally wrong and point to older Gatsby plugin's.

"peerDependencies": { "gatsby": ">= 4.24.0", "gatsby-plugin-image": ">= 1.0.0", "react": "*", "react-helmet": ">= 5.0.0" },

should be

"peerDependencies": { "gatsby": ">= 5.0.0", "gatsby-plugin-image": ">= 3.0.0", "react": "*", "react-helmet": ">= 6.0.0" },

This is a temp fix. That will work with Gatsby 5

You get rid of react-helmet and datoHelmet and use the new API using Gatsby Head

donaldboulton avatar Jan 20 '23 13:01 donaldboulton