Skip to content

fix(gatsby): do not fail in develop when eslint loader is removed #28494

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

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

vladar
Copy link
Contributor

@vladar vladar commented Dec 4, 2020

Description

This PR fixes a bug when gatsby develop breaks in the unfortunate (and very rare) edge case when the eslint loader is removed from the webpack config (in site's onCreateWebpackConfig).

Before this PR we assume eslint loader always exists. This PR removes this assumption and makes the failing code more robust.

Related Issues

Fixes #28429

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 4, 2020
@vladar vladar added topic: webpack/babel Webpack or babel and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Dec 4, 2020
@vladar vladar mentioned this pull request Dec 4, 2020
@vladar vladar changed the title fix(gatsby): do not fail the develop when eslint loader is removed fix(gatsby): do not fail in develop when eslint loader is removed Dec 4, 2020
@pieh pieh self-assigned this Dec 7, 2020
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pieh pieh merged commit b3c171f into master Dec 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the vladar/gh-28429 branch December 7, 2020 11:58
pieh pushed a commit that referenced this pull request Dec 7, 2020
pieh pushed a commit that referenced this pull request Dec 7, 2020
) (#28517)

(cherry picked from commit b3c171f)

Co-authored-by: Vladimir Razuvaev <[email protected]>
@pieh
Copy link
Contributor

pieh commented Dec 7, 2020

Published in [email protected]

pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: webpack/babel Webpack or babel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError on live reload
2 participants