I have a thread open on discord if someone wouldn’t mind taking a look. Current versions of strapi and gatsby (as of last week). There is a conflict with gatsby-source-filesystem. I would appreciate any insight.
Hello, I have the same problem, have you perhaps found a solution yet?
gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
The plugin "gatsby-source-strapi" created a node of a type owned by another plugin.
The node type "File" is owned by "gatsby-source-filesystem".
Error: The plugin "gatsby-source-strapi" created a node of a type owned by another plugin.
The node type "File" is owned by "gatsby-source-filesystem".
If you copy and pasted code from elsewhere, you'll need to pick a new type name
for your new node(s).
Hello,
Same trouble here, it seems it has issues with gatsby-source-filesystem, help please!!!
Error: The plugin “gatsby-source-strapi” created a node of a type owned by another plugin.
The node type “File” is owned by “gatsby-source-filesystem”.
If you copy and pasted code from elsewhere, you’ll need to pick a new type name
for your new node(s).
The plugin creating the node:
{
“resolve”: “/Users/wmaas/Documents/strapi/blog/node_modules/gatsby-source-strapi”,
“id”: “1629a382-1c2d-508a-a9d9-9baba158a7bc”,
“name”: “gatsby-source-strapi”,
“version”: “3.2.0”,
Same here I use fetch at the moment for consume my public API. does it bother?
Could you please explain how you do that? did you revert Strapi back to the REST API?
I found this thread
Personally I made the changes in dist/ for the Gatsby-source-strapi and everything works great then.
Regards
Moving the
{
resolve: "gatsby-source-strapi",
options: strapiConfig
}
above the gatsby-source-filesystem
in the config solved it for me.
Edit: Nvm, maybe just the gatsby clean
command worked.
Yep, it was the order and not just a gatsby clean. The error is resolved when gatsby-source-strapi appears in gatsby-config.js before gatsby-source-filesystem. (I’m on Gatsby 5.10.0 and Strapi 4.10.6)