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

Unhelpful error messages for invalid gatsby-config properties #20704

Closed
geeofree opened this issue Jan 19, 2020 · 2 comments
Closed

Unhelpful error messages for invalid gatsby-config properties #20704

geeofree opened this issue Jan 19, 2020 · 2 comments
Assignees

Comments

@geeofree
Copy link

geeofree commented Jan 19, 2020

Description

Running gatsby develop or gatsby build with an invalid property on gatsby-config.js that's not in any of these throws an unhelpful error message. See below:

gatsby-config.js

gb-config

Gatsby's CLI Output

error

Steps to reproduce

  1. Go to gatsby-config.js and add any property that's not any of these

  2. Run gatsby develop or gatsby build commands

See repo demo file

Expected result

What should happen?

Need to have a useful CLI error messages on gatsby

What happened.

Didn't have a useful CLI error message

Environment

environment

P.S.

I'd like to help resolve this issue and file a PR if someone is willing to guide me through the codebase that needs to be looked at. Currently I've only searched for terms such as dispatch as I guess there's a reducer that's firing an effect somewhere but I'm finding it hard which to look for.

@LekoArts
Copy link
Contributor

Hi, thanks for the issue!
This could potentially be solved with: #16027
I'll try to make the error message better in: #20597

Related issue: #19941

So I'll work on this but we'd be happy to receive a PR from your for our open issues (e.g. tagged with "help wanted"). Thanks!

@geeofree
Copy link
Author

Oh. Cool! I'll close this now then. Didn't know this was being worked on already so my b and thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants