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

gatsby-plugin-gatsby-cloud plugin throwing error in Gatsby Cloud #32042

Closed
LinnJS opened this issue Jun 22, 2021 · 7 comments · Fixed by #32047
Closed

gatsby-plugin-gatsby-cloud plugin throwing error in Gatsby Cloud #32042

LinnJS opened this issue Jun 22, 2021 · 7 comments · Fixed by #32047
Labels
topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label type: bug An issue or pull request relating to a bug in Gatsby

Comments

@LinnJS
Copy link

LinnJS commented Jun 22, 2021

Description

When merging a seemly unrelated PR this error started popping up in Gatsby Cloud. I reverted the PR and now all my branches on Gatsby Cloud are failing... is this due to some kind of service outage?

image

Steps to reproduce

Steps to reproduce are hard since this error erroneously appeared out of nowhere. I reverted PRs and the error is still coming up. I have no idea how to debug.

Expected result

Error should not appear in GatsbyCloud or have a path to help debug where the error is occurring in my project if at all.

Actual result

Gatsby build failed and is pointing to a undefined error of (0 , _gatsbyTelemetry.captureEvent) is not a function this error does not happen locally, only happens in GatsbyCloud.

Environment

System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.1 - ~/.nvm/versions/node/v14.17.1/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.17.0 - ~/.nvm/versions/node/v14.17.1/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 91.0.4472.114
Firefox: 85.0
Safari: 14.1.1
npmPackages:
gatsby: ^3.7.2 => 3.7.2
gatsby-background-image: ^1.5.3 => 1.5.3
gatsby-plugin-env-variables: ^2.1.0 => 2.1.0
gatsby-plugin-fullstory: ^3.7.1 => 3.7.1
gatsby-plugin-google-fonts: ^1.0.1 => 1.0.1
gatsby-plugin-google-tagmanager: ^3.7.1 => 3.7.1
gatsby-plugin-image: ^1.7.1 => 1.7.1
gatsby-plugin-manifest: ^3.7.1 => 3.7.1
gatsby-plugin-mdx: ^2.7.1 => 2.7.1
gatsby-plugin-react-helmet: ^4.7.1 => 4.7.1
gatsby-plugin-remove-serviceworker: ^1.0.0 => 1.0.0
gatsby-plugin-robots-txt: ^1.6.2 => 1.6.2
gatsby-plugin-root-import: ^2.0.6 => 2.0.6
gatsby-plugin-sharp: ^3.7.1 => 3.7.1
gatsby-plugin-sitemap: ^4.3.1 => 4.3.1
gatsby-plugin-styled-components: ^4.7.1 => 4.7.1
gatsby-remark-images: ^5.4.1 => 5.4.1
gatsby-source-drupal: ^4.7.2 => 4.7.2
gatsby-source-filesystem: ^3.7.1 => 3.7.1
gatsby-transformer-json: ^3.7.1 => 3.7.1
gatsby-transformer-remark: ^4.4.1 => 4.4.1
gatsby-transformer-sharp: ^3.7.1 => 3.7.1
npmGlobalPackages:
gatsby-cli: 3.7.1

@LinnJS LinnJS added the type: bug An issue or pull request relating to a bug in Gatsby label Jun 22, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 22, 2021
@trevlar
Copy link

trevlar commented Jun 22, 2021

I'm also seeing this issue with the PhoneSoap websites build.

@LinnJS
Copy link
Author

LinnJS commented Jun 22, 2021

@trevlar glad I am not the only one I have been messing around with the project configs to see if I could figure it out. Added gatsby-plugin-gatsby-cloud and removing experimental feature flags but still having failing builds 😭 . Gonna walk away for a bit and check back in the AM. At least the prod sites are still working cause static 🤷‍♂️ .

@davidfekke
Copy link

I am getting it to when I try to use this plugin.

@tkatchenko
Copy link

Also getting this on Gatsby Cloud and when building locally with the plugin enabled.

@tkatchenko
Copy link

Gatsby Cloud automatically injects the plugin but manually installing and enabling gatsby-plugin-gatsby-cloud@2.7.0 fixed it for me.

@abhiaiyer91
Copy link
Contributor

abhiaiyer91 commented Jun 23, 2021

Hi all, these were the related PRs that introduced the issue.

#31831
#31833

With the release of 3.8 and its related dependencies bumps for gatsby-telemetry and gatsby-plugin-gatsby-cloud should fix the issue.

If upgrading to 3.8 is not possible for you right now, then installing your own version of gatsby-plugin-gatsby-cloud like @tkatchenko did will prevent Gatsby Cloud from installing the latest plugin version.

This was my fault! I am so sorry for the inconvenience! When I had written my PR captureEvent did exist :(.

@KyleAMathews
Copy link
Contributor

gatsby-plugin-gatsby-cloud@2.8.1 is out with gatsby-telemetry as a dependency so this should be solved now. Let us know if there's any other troubles!

@LekoArts LekoArts added topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants