question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem building blog on Netlify

See original GitHub issue

My site builds and works fine locally but Netlify build from repo fails. Am I doing something wrong?

`7:06:32 PM: success Building CSS — 7.214 s 7:06:49 PM: success Building production JavaScript bundles — 17.286 s 7:06:54 PM: 7:06:54 PM: error Building static HTML for pages failed

See our docs page on debugging HTML builds for help https://goo.gl/yL9lND 7:06:54 PM: 89 | 90 | export default function Blog({data}) {

91 | const { edges: posts } = data.allMarkdownRemark | ^ 92 | return ( 93 | <div> 94 | {/* <BackLinkContainer>

WebpackError: Cannot read property ‘allMarkdownRemark’ of undefined

  • index.js:91 Blog src/pages/blog/index.js:91:33

  • ReactCompositeComponent.js:306 ReactCompositeComponentWrapper._constructComp onentWithoutOwner ~/react-dom/lib/ReactCompositeComponent.js:306:1

  • ReactCompositeComponent.js:282 ReactCompositeComponentWrapper._constructComp onent ~/react-dom/lib/ReactCompositeComponent.js:282:1

  • ReactCompositeComponent.js:185 ReactCompositeComponentWrapper.mountComponent ~/react-dom/lib/ReactCompositeComponent.js:185:1

  • ReactReconciler.js:43 Object.mountComponent ~/react-dom/lib/ReactReconciler.js:43:1

  • ReactMultiChild.js:234 ReactDOMComponent.mountChildren ~/react-dom/lib/ReactMultiChild.js:234:1

  • ReactDOMComponent.js:657 ReactDOMComponent._createContentMarkup ~/react-dom/lib/ReactDOMComponent.js:657:1

  • ReactDOMComponent.js:524 ReactDOMComponent.mountComponent ~/react-dom/lib/ReactDOMComponent.js:524:1

  • ReactReconciler.js:43 Object.mountComponent ~/react-dom/lib/ReactReconciler.js:43:1

  • ReactCompositeComponent.js:368 ReactCompositeComponentWrapper.performInitial Mount ~/react-dom/lib/ReactCompositeComponent.js:368:1

7:06:54 PM: Cached NPM modules 7:06:54 PM: Saved Cache Directory 7:06:56 PM: Build complete: exit code: 1 7:06:56 PM: Cleaning up docker container 7:06:57 PM: Error running command: Build script returned non-zero exit code: 1 7:06:57 PM: An error occurred while building the site, skipping the deploy and cache refresh. 7:06:57 PM: Build script returned non-zero exit code: 1 7:07:00 PM: Finished processing build request in 2m20.808351633s`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
casprwangcommented, Dec 9, 2017

Looks similar to my case #2830

0reactions
KyleAMathewscommented, Sep 8, 2018

Due to the high volume of issues, we’re closing out older ones without recent activity. Please open a new issue if you need help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build troubleshooting tips - Netlify Docs
Find troubleshooting tips for failing builds, learn how to address certain build errors, and access additional support resources.
Read more >
How to Build a Blog with Gatsby and Netlify CMS
In this article, we are going to build a blog with Gatsby and Netlify CMS. You will learn how to install Gatsby on...
Read more >
How to build a Gatsby blog site with Netlify CMS - Educative.io
Learn the 24 patterns to solve any coding interview question without getting lost in a maze of LeetCode-style practice problems. Practice your skills...
Read more >
How and Why I Migrated My Blog From Github Pages to Netlify
And it worked like a charm even if it was free. I have been looking for ways to set up my Hugo website...
Read more >
3.1 Netlify | blogdown: Creating Websites with R Markdown
If you have suggestions for improving this book, please file an issue in our GitHub repository. Thanks for your patience while we work...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found