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

Errors on gatsby build #23

Open
shanejones opened this issue Jun 5, 2021 · 2 comments
Open

Errors on gatsby build #23

shanejones opened this issue Jun 5, 2021 · 2 comments

Comments

@shanejones
Copy link

So I seem to be hitting an error when it comes to running gatsby build.

Building static HTML failed

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


  216 | var validateRedirect = function validateRedirect(from, to) {
  217 |   var filter = function filter(segment) {
> 218 |     return isDynamic(segment);
      | ^
  219 |   };
  220 |   var fromString = segmentize(from).filter(filter).sort().join("/");
  221 |   var toString = segmentize(to).filter(filter).sort().join("/");


  WebpackError: /Users/shane/sites/static/neverspoons-bottleshop/public/render-page.js:1412

If I comment out this plugin and the components the site builds fine.

I have the config setup as per the documentation and I also have the conditional check for if the window is defined too.

Is there a demo of this working on a gatsby project at all?

@lamellama
Copy link

My problem was using node13, building on node16 with npm^7 worked

@ludwig-pro
Copy link

I confirm that I wasn't able to build with node 12.x but node 14.x works well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants