-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR #85901 GRAPHQL #15344
Comments
Getting the same error, too. However, I don't have gatsby-plugin-mailchimp in my website |
It could be another plugin, I searched my entire project for "SiteTitleQuery" and gatsby-plugin-mailchimp was the only result. |
I think this is related to #15284, let me see if I can put a repro together quickly. |
cc @sidharthachatterjee repro here: https://github.com/m-allanson/gatsby-issue-15344 steps:
This is the hello-world starter with
A quick fix might be to exclude |
getting this error after updating gatsby |
I am getting the same error when deploying my gatsby site on Netlify, none of the usual steps (npm install, deleting suspicious packages, clearing cache, ...) fixed this...
|
This is occurring because some packages happen to ship example code (that includes queries). And we now parse The correct fix for this is for packages to add examples to I'm fixing In the mean time, @javidhsueh @bogdancss @spookyMilly can you please post your Edit: Fixes for |
@spookyMilly This should be fixed by updating |
Thank you so much for your help, @pieh and @sidharthachatterjee ! I updated
Also this occured after running
Here is my
Binaries:
Languages:
Browsers:
npmPackages:
Again, thank you so much. Hope this is useful for you guys. |
Hello again, sorry for the duplicate post, but I found a solution to the #85901 GRAPHQL error. Maybe this is helpful for others.
Now everything is working fine again. 😆 Thanks again guys. Hope this helps you |
|
I am also getting this error now, seems like its trying to 'query a query" within fragment.js in gatsby-source-contentful node_modules as if its a static query in one of my components. If I comment out that entire file it works locally but not when deploying to netlify. |
@darrencarlin Not ideal, but this probably happens if you have 0 assets/images - as a workaround you might try adding dummy image there (that you don't have to use) |
@pieh That sorted it! Thank you. |
I'm also seeing this issue on Netlify, the npm modules from gatsby info are: npmPackages: |
Probably the contentful plugin, given the error messages in the netlify deploy log: |
same problem, need a solution:
and in gatsby-transformer-sqip: |
Same here! Edit/Update: Still not sure what the issue exactly caused, but I reinstalled
worked for me! |
I have the same problem after updating gatsby to 2.13.3 version. More info: Main project:
and
|
Thanks @kerminz
I tried using the versions with the caret but that didn't help. That will do for a temporary fix to get my site back updating until I work out a proper fix. |
I removed operations names from queries yesterday and I thought that fixed the issue but after proper testing this morning I found out that solution is not working. I'm getting more queries related errors. I've created a minimal example to replicate |
Started getting the same error after updating to Gatsby |
Thanks for the repro @marcinsydor 👍 I can confirm the issue is fixed in your repro by updating to latest gatsby and plugins. However, after the update there's a new warning message.
|
Hey @m-allanson. I also tried the last Gatsby version but like you and I had got the same warnings. I did not have time to investigate in it then. But now I can say we have that message because of two I'm not sure what Gatsby should do in that scenario. Maybe we should get warning the I'm also not clear why I need to add |
I met the same error. |
I'm having this issue on [email protected]+ also, same as @andrewlsimplisafe I went back to [email protected] and all ok, for now. T.Hanks System: |
I fixed my issue, for me it was a configuration issue 🤦♂️ I didn't have |
I had the same problem and solved by deleting the files that resulted in errors and recreating them with different names. Apparently git was pushing both the uppercase and lowercase files (Eg: |
After uploading the image, a new error has appeared. ERROR #85907 GRAPHQL
|
It happens when you use contentful as your CMS, as it forcefully creates image asset in the node modules folder. one needs to add a dummy image to the Media section in the contentful web application, further, if there are image manipulation plugins like gatsby-transformer-remark, gatsby-plugin-sharp or similar, you need to take care of that, as gatsby throws an exception by default in the most newer versions !! |
Looks like this is safe to close since the original issue was resolved (as I commented above) and the rest look like unrelated (but similar looking) issues that folks have figured out fixes for. Let's close this! Thank you everyone 🙌 |
- added import for graphql as due to build error when updating to newest gatsby: "warn Using the global `graphql` tag is deprecated, and will not be supported in v3. Import it instead like: import { graphql } from 'gatsby' in file: /Users/.../gatsby-issue-15344/node_modules/gatsby-plugin-mailchimp/examples/gatsby-v1/src/layouts/index.js" - across many modules there are examples that keep the same query names which throws a graphql error for not using unique query names. See for example: gatsbyjs/gatsby#15344. Therefore changed query name to something more unique.
@pieh Amazing. If anyone was wondering what they meant by "adding dummy image there", follow these steps:
I have so many questions, but already wasted enough time on this to try to understand why that matters. |
Thanks for this answer. I'm currently trying to do this, but when I attempt any image upload, getting "An error occurred while uploading your asset.", no matter what image I upload. |
Spent an embarassing amount of time with this issue, when all it took to resolve was:
i ran |
This worked just great for me. Thanks! @abhinav-anshul |
Adding a dummy image in contentful web app worked for me. |
Description
Updated to the latest version of gatsby 2.13.1 and started getting the following error after running gatsby develop.
I was able to fix this issue after removing gatsby-plugin-mailchimp
Apparently the mailchimp examples are creating a problem.
Just wanted to let everyone else know.
The text was updated successfully, but these errors were encountered: