-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsny build fails at: Building static HTML for pages failed with #11841
Comments
hello @zilahir could you provide a minimal reproduction of the issue, maybe a github repo? |
hello @gurpreet-hanjra , thank for your reply. well i can give u a github repo, but then i'd need to provide you my API credentials, since you won't be able to test it without those. I will figure out something soonish! Thank you! |
Great, thank you. |
@zilahir you could also mock the API with a JSON file as I'm pretty sure it's not really Gatsby related but more on the data part of it. So if you could reproduce it with maybe something like below that would be enough :)
|
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Description
I have been struggling with this for weeks now.
gatsby develop
works as expected, all the data getting processed, all the pages rendered correctly, butgatsby build
fails with the following issue:error Building static HTML for pages failed
Steps to reproduce
get any api endpoint which returns json like as string, then use:
let demo = JSON.parse(sometJson)
,then try to map it through:
demo.map((e, i) => (
In
dev
, works like charm, as it should. The issues occurs when i am trying to build.Expected result
Not throwing
unexpected end of json input
Actual result
See image attachment.
Environment
I have found an other issue which may be related, but that one was already closed, even if the issue seems super similar.
#3094
I hace created a gist and put my entire json which probably causing the issue
The text was updated successfully, but these errors were encountered: