gatsbyjs / themes

This is a repo for Gatsby's official themes.
138 stars 78 forks source link

Can't run gatsby build #164

Open pannoury opened 2 years ago

pannoury commented 2 years ago

ERROR

Page data from page-data.json for the failed page "/en/": { "componentChunkName": "component---src-pages-index-js", "path": "/en/", "result": { "pageContext": { "locale": "en", "hrefLang": "en-US", "originalPath": "/", "dateFormat": "DD/MM/YYYY" } }, "staticQueryHashes": [ "1239077767", "3280999885" ] }

failed Building static HTML for pages - 3.482s

ERROR #95313

Building static HTML failed for path "/en/"

See our docs page for more info on this error: https://gatsby.dev/debug-html

10 |
11 |

12 | const [, base] = path.split(/) | ^ 13 | 14 | // If for whatever reason we receive an already localized path 15 | // (e.g. if the path was made with location.pathname)

WebpackError: TypeError: Cannot read properties of undefined (reading 'split')

Assitan commented 1 year ago

Did you find a solution? I have the same error ...

pannoury commented 1 year ago

Sadly not. I have switched entirety to next.js since I faced this issue