datocms / gatsby-source-datocms

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

Plugin doesn't work with Gatsby v5 #206

Closed matheusml closed 1 year ago

matheusml commented 1 year ago
Screenshot 2022-11-29 at 16 33 07

Do you have any plans on updating it?

browniebroke commented 1 year ago

Gave this a try in #207 it seems to work, just need to lift the upper bounds in these peer deps restrictions.

If you want to try it out, you can install the version from my fork by editing your package.json like this:

-    "gatsby-source-datocms": "4.0.5",
+    "gatsby-source-datocms": "github:browniebroke/gatsby-source-datocms#feat/gatsby-v5",

PS: probably don't deploy that version (I might remove the branch without notice), but might be good to test it out on your installation and feedback here in case it works on not.

theikid commented 1 year ago

Hi there, trying to install an other Gatsby plugin it breaks because of Dato dependencies. Any way to correct this ? Thank you !

stefanoverna commented 1 year ago

@theikid can you please provide more information? How is it breaking? What's the other Gatsby plugin?

theikid commented 1 year ago

@theikid can you please provide more information? How is it breaking? What's the other Gatsby plugin?

I'm on the latest gatbsy version '5.2.0' and I got this when running install of the package.

Could not resolve dependency: npm ERR! peer gatsby@"^2.12.1 || ^3.0.0 || ^4.0.0" from gatsby-source-datocms@4.0.5 npm ERR! node_modules/gatsby-source-datocms npm ERR! gatsby-source-datocms@"*" from the root project

stefanoverna commented 1 year ago

Can you please try installing gatsby-source-datocms v5.0.1?

theikid commented 1 year ago

Can you please try installing gatsby-source-datocms v5.0.1?

I manage to install it without issue. But now I got this error with my query

Capture d’écran 2022-12-06 à 22 34 56

But the query is working within graphiql

stefanoverna commented 1 year ago

Are you able to share a repo reproducing the issue @theikid?

maximeealet commented 1 year ago

Are you able to share a repo reproducing the issue @theikid?

Issue was on my side sorry about that !