'gatsby-source-graphql' causes load plugins error quoting 'gatsby/graphql' #29324
-
I have a working Gatsby install that I've been adding to, however, in trying to build in some graphQL build-time data fetching, I've run into an issue that causes error when running npm start (gatsby develop) or gatsby build. I installed gatsby-source-graphql as described here: And I included it in my gatsby-config.js like this:
But it produces this error:
What I've tried:
My environment report using gatsby info --clipboard is:
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @daledesilva This sounds pretty strange. As if there is an issue with commonjs module resolutions. Maybe you have directory "gatsby" somewhere within your project (just a guess)? If not - please check if the file If there is nothing suspicious there - it would be incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it. |
Beta Was this translation helpful? Give feedback.
-
I started creating a minimal reproduction and adding everything back one by one, but decided to play more with my first setup for a little...and I'm glad I did. Here's what caused the issue:This Gatsby install is part of a Project Template we use which includes backend code, front-end, pipeline deployment scripts, etc. ProjectTemplate folder
The Gatsby install lives in the client folder but occasionally I need to go into the root folder to do certain things. So what happened!?I accidentally installed |
Beta Was this translation helpful? Give feedback.
I started creating a minimal reproduction and adding everything back one by one, but decided to play more with my first setup for a little...and I'm glad I did.
Here's what caused the issue:
This Gatsby install is part of a Project Template we use which includes backend code, front-end, pipeline deployment scripts, etc.
The structure is similar to:
ProjectTemplate folder
The Gatsby install lives in the client folder but occasionally I need to go into the root folder to do certain things.
So what happened!?
I accidentally installed
gatsby-source-graphql
into the root folder instead of the client folder. That's all.I should have picked this up wh…