Error Building static HTML failed for path "/home/"
See original GitHub issueHello, I have the error when I run the build, error has failed for the path, I have no idea where this error occurs.
error Building static HTML failed for path "/home/"
See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html
7 |
8 | if (isProduction) {
> 9 | throw new Error(prefix);
| ^
10 | } else {
11 | throw new Error(prefix + ": " + (message || ''));
12 | }
WebpackError: Invariant failed
- tiny-invariant.esm.js:9 invariant
[lib]/[tiny-invariant]/dist/tiny-invariant.esm.js:9:1
- history.js:250 createBrowserHistory
[lib]/[history]/esm/history.js:250:115
- react-router-dom.js:29 new BrowserRouter
[lib]/[react-router-dom]/esm/react-router-dom.js:29:41
- bootstrap:22 c
lib/webpack/bootstrap:22:1
- bootstrap:25 Sa
lib/webpack/bootstrap:25:1
- bootstrap:30 a.render
lib/webpack/bootstrap:30:1
- bootstrap:30 a.read
lib/webpack/bootstrap:30:1
- bootstrap:42 renderToString
lib/webpack/bootstrap:42:1
- static-entry.js:194 Module../.cache/static-entry.js.__webpack_exports__.default
lib/.cache/static-entry.js:194:18
- bootstrap:24 Promise
lib/webpack/bootstrap:24:1
- gatsby-browser-entry.js:19 Promise._resolveFromExecutor
lib/.cache/gatsby-browser-entry.js:19:9
- bootstrap:68 new Promise
lib/webpack/bootstrap:68:1
- bootstrap:5 tryCatcher
lib/webpack/bootstrap:5:1
- bootstrap:50 MappingPromiseArray._promiseFulfilled
lib/webpack/bootstrap:50:1`
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Error Building static HTML failed for path "/home/" · Issue #22594
Description. `Building static HTML failed for path "/404/". See our docs page for more info on this error: https://gatsby.dev/debug-html.
Read more >Building static HTML failed for path "/styles/" - Gatsby ...
It says to use a non-minified command, but gatsby develop doesn't throw any error so I'm a bit unsure on how to debug...
Read more >Building static HTML failed for path - Developing with Prismic
Hello,. we have an issue with gatsby build . The issue only happens with gatsby build , gatsby develop is working fine. The...
Read more >[Gatsby] Building static HTML failed for path - Support
There is an error when trying to build the website, the weird thing is that this is only happening in netlify, when I...
Read more >Debugging HTML Builds | Gatsby
Errors while building static HTML files (the build-time React SSR process) or while using getServerData (the runtime SSR process…
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@antonioc57 This typically occurs when there is an error during server side rendering in
gatsby build
Based on your stack trace, it looks like it is coming from
react-router-dom
. Gatsby v2 includes reach router for routing so you shouldn’t need to include react-router-dom.Got same error:
dependencies I am using: