-
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
gatsby-transformer-sharp fragments fails GraphQL - Unknown Types #15625
Comments
Maybe it is not a problem of I'm facing the same issue and I've just tested all v12 and v13 of Gatsby and the result is still same - build phase throws:
|
I met the same error. |
Hitting the same issue: There was an error in your GraphQL query:
Unknown type "ImageSharpFluid".
File: node_modules/gatsby-transformer-sharp/src/fragments.js:5:46 and this error: /src/pages/index.js
error Cannot query field "file" on type "Query". Did you mean "site"? Any idea how to fix? |
Rolling back to gatsby v2.10.0 resolved the issue for me. More info at this
thread
<https://spectrum.chat/gatsby-js/general/build-script-returned-non-zero-exit-code-1~619d3d86-1706-41c7-b16b-7be42e4be679>
.
…On Sun, Jul 14, 2019 at 10:48 PM Emad Abdulrahim ***@***.***> wrote:
Hitting the same issue:
There was an error in your GraphQL query:
Unknown type "ImageSharpFluid".
File: node_modules/gatsby-transformer-sharp/src/fragments.js:5:46
and this error:
/src/pages/index.js
error Cannot query field "file" on type "Query". Did you mean "site"? ```Any idea how to fix?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15625?email_source=notifications&email_token=ADGRBHMF2GOOH3PAGHJOFXDP7QFSXA5CNFSM4IA23CT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4YL5Y#issuecomment-511280631>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADGRBHJIBD7IA7Q2DA634WDP7QFSXANCNFSM4IA23CTQ>
.
--
David Gaskin
(778) 587-9220
|
I haven't been able to get a successful build for some time, with a longer error output:
|
Getting same error, tried Gatsby 2.7, 2.10, 2.13, also tried updating gatsby-image to 2.2.6 and gatsby-transformer-sharp to 2.2.7 |
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is 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. If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look. Thanks for using Gatsby! 💜 |
For me, it turns out I didn't have |
🤔 I'm a total Gatsby newbie and just learning it by converting my blog from Hugo => Gatsby. I'm trying to build it with gatsby-themes and I have the same issue. I had the (I'm using a yarn workspace, but that shouldn't matter I guess) |
@th0th gave the solution for me. In my case I was missing only |
I'm getting this issue on an almost empty gatsby site. Omitted gatsby-config.js, or an empty module.exports = {} still give me this issue. Only fixed when I set the gatsby-transformer-sharp plugin.. |
Seems having it in your installed in your package.json and not using it will throw this error, will make an issue.. |
As @wesbos says, this error can throw when |
Description
Running deploy (build) on Netlify results in
error #85901 GRAPHQL
.Full error:
Commenting out file
node_modules/gatsby-transformer-sharp/src/fragments.js
solves the issue locally.Steps to reproduce
Push project to Git repo and initiate Netlify build hook.
Expected result
The build should succeed and the site should publish.
Actual result
The build fails.
Environment
This is a copy and pasted version of the rest of my package.json picking up immediately after the error:
gatsby-config.js
gatsby-node.js
The text was updated successfully, but these errors were encountered: