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): fix codeframe generation for html errors #33255

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Sep 20, 2021

Description

With #33054 our handling for printing codeframe on html rendering errors somewhat broke - it only printed codeframe when it originated from entry of render-page but was missing those when it originated from split template files.

This hacks a bit to handle all .map files in page renderer directory and test all of them until it finds a match. I tried to keep "public" api of related functions untouched to not cause potential compat issues with previous versions etc given that changes had to happen in gatsby-cli and not core gatsby package

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 20, 2021
@pieh pieh added topic: cli Related to the Gatsby CLI and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Sep 20, 2021
@pieh pieh marked this pull request as ready for review September 20, 2021 11:17
@pieh pieh merged commit 4221f54 into master Sep 20, 2021
@pieh pieh deleted the tests/gatsby-cli branch September 20, 2021 11:49
wardpeet pushed a commit to herecydev/gatsby that referenced this pull request Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cli Related to the Gatsby CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants