directus / gatsby-source-directus

Source plugin for pulling data into Gatsby from a Directus API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The plugin "gatsby-source-directus" created a node of a type "File" owned by "gatsby-source-filesystem"

mannp opened this issue · comments

commented

Gatsby 5.9 and 5.10, Directus 10.2.1, gatsby-source-filesystem 5.10, @directus/gatsby-source-directus 9.15.1

Highlighting the same issue that has been reported by strapi users has affected me using gatsby-source-directus too.

Added as a placeholder while tracking gatsby-uc/plugins#426 (comment)

Reverting to gatsby 5.8 and gatsby-source-filesystem 5.8 things work again.

Experiencing the same issue, except in my case it will work with the latest version of Gatsby (5.10.0 as of this post) if I use gatsby-source-directus 9.15.0 rather than 9.15.1, AND always run yarn clean before yarn start or yarn build. Always get the error above when running gatsby-source-directus 9.15.1, or when not cleaning first.

@mannp From the linked issue, it looks like the Gatsby team is working on a fix for Gatsby? 🤔

PRs more than welcome if there's a proposed fix for within the Directus abstraction itself 🙂

commented

@rijkvanzanten that is my understanding yes, so I am hopeful the issue will get fixed there. This was more a placeholder and to acknowledge the issue for directus too.

Gotcha! Thanks for confirming

We're tracking this here and you can try a new version: gatsbyjs/gatsby#38117 (comment)

commented

We're tracking this here and you can try a canary: gatsbyjs/gatsby#38117 (comment)

Thanks 👍🏻

@rijkvanzanten does this response from @LekoArts make sense to you in the context of directus?

gatsbyjs/gatsby#38117 (comment)

commented

We're tracking this here and you can try a new version: gatsbyjs/gatsby#38117 (comment)

Resolved for me thank you @LekoArts

@mannp I don't really know enough about Gatsby or how their plugins work to comment on this I'm afraid..