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

Deployment issue error Building static HTML failed for path "/about/" #24546

Closed
williamkwon97 opened this issue May 27, 2020 · 3 comments
Closed
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@williamkwon97
Copy link

Description

I have a similar problem with this issue
#12706
I didn't used the lazy or suspension code and I search for it too, but I didn't find anything.
https://github.com/williamkwon97/GatsbyJS
Screen Shot 2020-05-27 at 1 33 04 PM
my about.js
Screen Shot 2020-05-27 at 1 31 14 PM

Run gatsby info --clipboard in your project directory and paste the output here.

@williamkwon97 williamkwon97 added the type: bug An issue or pull request relating to a bug in Gatsby label May 27, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 27, 2020
@mnurik
Copy link
Contributor

mnurik commented May 27, 2020

@williamkwon97 I don't think it is gatsby issue. While in build step you are trying to get store from empty context and then from store you are looking for value isDark. So if you give an initial value to context in context.js file, like: createContext({ state: {/* your initial store */} }), you will see the error gone. You still have an issue using emotion-theming, but it is different topic :)

@williamkwon97
Copy link
Author

williamkwon97 commented May 27, 2020

@williamkwon97 I don't think it is gatsby issue. While in build step you are trying to get store from empty context and then from store you are looking for value isDark. So if you give an initial value to context in context.js file, like: createContext({ state: {/* your initial store */} }), you will see the error gone. You still have an issue using emotion-theming, but it is different topic :)

@mnurik Hello thank you for responding. I learn gatsbyJS 2 days ago and never learn javascript properly before so could you fork what you mean? I basically finished tutorial from gatsbyjs and watched https://www.youtube.com/watch?v=UWFU0xV5Y2I&t=381s this videos to implement dark mode so not sure what to put as /* your initial store */. Also how is emotion-theming going to trouble after this? everything works on localhost, so this is really confusing me. If I trying to get store from empty context and then from store I am looking for value isDark how is working on localhost?

@wardpeet
Copy link
Contributor

Thanks so much for opening this issue! As stated, this is slightly tangential to Gatsby. Please go to Discord, they can probably help you with these issues.

If this is not the case, or if we can help further--please don’t hesitate to reach out or comment on this issue, and we’d love to take another look.

Thanks for using Gatsby 💪

@wardpeet wardpeet added type: question or discussion Issue discussing or asking a question about Gatsby and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby labels May 28, 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

3 participants