Building static HTML failed for path


we have an issue with gatsby build. The issue only happens with gatsby build, gatsby develop is working fine.

The error starts after the update of the gatsby-source-prismic plugin. We update the version from 3 to 5.

Here is our gatsby-node.js (4.4 KB).

The error message is:

failed Building static HTML for pages - 2.565s

 ERROR #95313 

Building static HTML failed for path "/de-de"

See our docs page for more info on this error:

  14 |     var arr = new Array(times);
  15 |     for (var i = 0; i < arr.length; i++) {
> 16 |         arr[i] = s;
     | ^
  17 |     }
  18 |     return arr.join('');
  19 | }

  WebpackError: Minified React error #130; visit[]=undefined&args[]= for the full message or use the non-m
  inified dev environment for full errors and additional helpful warnings.
  - utils.js:16 
  - utils.js:12 
  - utils.js:23 
  - static-entry.js:294 

Does anyone have an idea?
Thank you

Hello @webmatch, what are the other URLs you're trying to build? I see that documents with the de-de lang are the default.

Hello @Pau, all URLs starts with the de-de. Some other URLs are

  • de-de/services
  • de-de/services/commerce-experiences
  • de-de/cases
  • de-de/agentur

Thank you for your help!

From what I can see in similar threads online, this error can be related to many things, out of date dependencies, errors in the path, and some say it's related to this plugin: gatsby-plugin-google-fonts