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

fix(gatsby): handle errors thrown when importing html renderer #32417

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Jul 19, 2021

Description

Extra error details added in #32301 assume that all errors will have .context.path. But errors can be not specific to any particular page and can be thrown when just importing html rendering bundle (example of such error would be https://github.com/gatsbyjs/gatsby/blob/a0b542be35c15e71f8fe76cc5400576dfd0b1391/integration-tests/gatsby-cli/gatsby-sites/gatsby-build-errors/src/pages/index.js)

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 19, 2021
@pieh pieh added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 19, 2021
@gatsby-cloud
Copy link

gatsby-cloud bot commented Jul 19, 2021

Gatsby Cloud Build Report

🚩 Your build failed. See the build logs here

@gatsby-cloud
Copy link

gatsby-cloud bot commented Jul 19, 2021

Gatsby Cloud Build Report

🚩 Your build failed. See the build logs here

@pieh pieh added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jul 19, 2021
@gatsbybot gatsbybot merged commit b6f1272 into master Jul 19, 2021
@gatsbybot gatsbybot deleted the fix/html-gen-error-not-always-has-path branch July 19, 2021 10:47
LekoArts pushed a commit that referenced this pull request Jul 19, 2021
LekoArts pushed a commit that referenced this pull request Jul 19, 2021
… (#32423)

(cherry picked from commit b6f1272)

Co-authored-by: Michal Piechowiak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants