Skip to content
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

Intermittent errors with Gatsby Cloud builds #109

Closed
Tracked by #138
Samic8 opened this issue Sep 16, 2020 · 8 comments
Closed
Tracked by #138

Intermittent errors with Gatsby Cloud builds #109

Samic8 opened this issue Sep 16, 2020 · 8 comments
Assignees
Labels
bug Something isn't working investigation
Milestone

Comments

@Samic8
Copy link

Samic8 commented Sep 16, 2020

I'm getting this error occasionally with Gatsby Cloud builds. Triggering a new build usually results in another build that is successful without errors.

[typegen] An error on codegen GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbySanityImageFixed". GraphQLDocumentError: Unknown fragment "GatsbySanityImageFixed". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFixed". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbySanityImageFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbySanityImageFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbySanityImageFluid". GraphQLDocumentError: Unknown fragment "GatsbyImageSharpFluid". GraphQLDocumentError: Unknown fragment "GatsbySanityImageFluid".
@pascaloliv
Copy link

pascaloliv commented Sep 17, 2020

I'm facing the same issue on GatsbyImageSharp fragments in my CI at the moment.
It randomly break my build (I'm using Buddy)

FYI - I'm using [email protected]

@cometkim cometkim added bug Something isn't working need to reproduce Reproduciton step is required labels Sep 20, 2020
@daniel-trevino
Copy link

I've experienced the same error as you. In my case, I could only see this error after having a gatsby clean and trying to do gatsby build (without running gatsby dev beforehand)

Try to change the order on how you load the plugin in gatsby-config. In my case, moving it at the end of the array solved the issue.

Good luck 👍

dowdiness added a commit to dowdiness/yowai-zine that referenced this issue Oct 23, 2020
@cometkim cometkim added this to the v3 milestone Oct 27, 2020
@cometkim cometkim self-assigned this Oct 27, 2020
@Samic8
Copy link
Author

Samic8 commented Nov 10, 2020

Hi @danielivert. I changed the order and still getting the error. Are you using Gatsby cloud?

@cometkim
Copy link
Owner

cometkim commented Nov 11, 2020

I believe it should be related to #113, affected by upstream behavior change.

But there is no time for maintenance these days 😢 will try my best this weekend

@Samic8
Copy link
Author

Samic8 commented Jan 4, 2021

Hi, @cometkim I'm happy to help with a PR to resolve this issue. But I may need some guidance. Let me know if my time would be helpful and if it's worth your time to explain the solution. Thanks!

@cometkim cometkim removed the need to reproduce Reproduciton step is required label Jan 4, 2021
@cometkim
Copy link
Owner

cometkim commented Jan 4, 2021

Hi @Samic8,

I was off here for months but now started over. You can watch the progress at #138. I'm going to change the behavior, so I don't recommend code contribution for now. But I will request you to test when the pre-release is ready.

@Samic8
Copy link
Author

Samic8 commented Feb 18, 2021

Hey @cometkim any update on this? I'm more than happy to help out fixing it if needed. Thanks!

@cometkim cometkim mentioned this issue May 10, 2021
Closed
30 tasks
cometkim added a commit that referenced this issue Jun 12, 2022
rc.0
- implemente XState based scheduler
- stabilize schema output
- bump GCG
- upgrade yarn to v3
- rewritten core logics
- upgrade eslint to v8
- upgrade plugin's dependencies
- pin graphql version
- rewrite emitSchema service
- rewriten emitPluginDocument service
- rewriten codegen service
- add TS & Flow examples

rc.1
- skip running on cloud build
- fix config validation
- more contexture reporting
- turn `flattenGeneratedTypesIncludeFragments` true
- stabilize documents
- change maybe type to use `null` instead of `undefined`
- update README

rc.2
- add mdx example
- MDX example to validate regression of [#117]
- update dependencies
- added support for `GatsbyImageData` scalar

Resolves #40
Resolves #103
Resolves #104
Resolves #109
Fixes #113
Fixes #117
Fixes #120
Resolves #122
Fixes #124
Resolves #131
Fixes #139, #99
Resolves #146
Fixes #157
Fixes #159
Fixes #160
Fixes #161
Fixes #162
Resolves #168
Resolves #169
Fixes #171

[#117]: #117
@cometkim
Copy link
Owner

In v3, gatsby-plugin-typegen will not run on Gatsby Cloud env anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation
Projects
None yet
Development

No branches or pull requests

4 participants