-
Notifications
You must be signed in to change notification settings - Fork 183
The gatsby-source-strapi plugin has generated no Gatsby nodes #40
Comments
I had same issue. |
Thank you very much @tripox , unfortunately that didn't fix it for me. I added an authenticated user, set the post permissions, dded the login data but still no posts. |
Hmm, do you see anything like this in the log?
Pretty new to GatsbyJS and Strapi. Have you tried to stop It doesn't listen for changes and only imports on the initial run. Another wild guess would be adding port to the |
Same here... After a research in the code, the plugin adds a limit query string in the request to strapi. |
I have the same issue. After some investigation I saw that the plugin makes a request to IMO the limit filter query should be removed in line 37 of |
After fixing the limit issue, another error came up in nodes.js file. The node.id must be a string and in my case the id is numeric and Gatsby throws an error. I fixed the issue adding a String() to line 17 in nodes.js file. In my strapi the DB backend is MySQL, maybe with mongo, this is not an issue. |
@javialon26 Same issue with the postgres backend, adding a |
I found another issue. If I import more than 1 content type, the id of each node collisions and only one content type is created. This happens because in Gatsby the node id must be globally unique. Maybe this is not an issue with Mongo but in MySQL or Postgres (@theshire-io ) the content types ids are numbers. I fixed this concatenating the type and the id in the nodes.js files (line 17). |
Thanks again @javialon26 ! |
@javialon26 Did you make a pull request? |
Having the same issue with postgres. the query limit is having some issues i tried @javialon26 fix now its working |
Having the same issue removing limit doesn't work for me, any help ? |
Ok, if you add contentTypes which doesn't exist in strapi, it will show this warning |
Not sure if this is helpful to anyone, but I had a similar issue that was due to a specified |
I have the same issue guys can you help me please |
Which Strapi version are you using? And which version of the gatsby-source-plugin? |
the last version I added the api word next to the collection type and it works . |
But there is no error.
gatsby.config.js
If I go to
https://redacted/posts
directly from the browser, it returns a json with the posts.Permissions for Public
Graphqli
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: