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

Debugging Gatsby Build. No Page or Line # Given #25603

Closed
Jacob124 opened this issue Jul 8, 2020 · 1 comment
Closed

Debugging Gatsby Build. No Page or Line # Given #25603

Jacob124 opened this issue Jul 8, 2020 · 1 comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@Jacob124
Copy link

Jacob124 commented Jul 8, 2020

This has given me a few headaches now. I've been trying to build my e-commerce site with Gatsby and I keep getting errors I didn't have in development. I keep getting the common error 'ReferenceError: window is not defined' but I get no line number or code.
image
A quick project search proves my code doesn't reference the window object, so it must be in a dependency. How can I know which one?

Question

How can I get Gatsby to output more robust information about the build failure? Looking at other people's issues shows that most have exactly that: A page and line number to where the error is being thrown. Is this a configuration?

I didn't think the gatsby API files were necessary to this question but I will gladly add them if you need me to.

@Jacob124 Jacob124 added the type: question or discussion Issue discussing or asking a question about Gatsby label Jul 8, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 8, 2020
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 8, 2020
@LekoArts
Copy link
Contributor

LekoArts commented Jul 8, 2020

This is a duplicate of #25507 - please post a reproduction there.

@LekoArts LekoArts closed this as completed Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants