# WebpackError #95313 "Building static HTML failed for path \[...\]" on castArray.js

**URL:** <https://community.prismic.io/t/webpackerror-95313-building-static-html-failed-for-path-on-castarray-js/14520>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [November 14, 2023, 2:08pm UTC](https://community.prismic.io/t/webpackerror-95313-building-static-html-failed-for-path-on-castarray-js/14520 "2023-11-14T14:08:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pierre/32/8878_2.png) [@pierre](https://community.prismic.io/u/pierre)\
**Post date:** [November 14, 2023, 2:08pm UTC](https://community.prismic.io/t/webpackerror-95313-building-static-html-failed-for-path-on-castarray-js/14520/1 "2023-11-14T14:08:14Z")

</div>

Hello,

I know it sounds similar to some other topics already posted but despite many tries I'm not able to solve my issue here. We are currently trying to update our Gatsby project, upgrading to React 18, Gatsby 5 and Gatsby/Prismic 6. But as we try to run the build command, we are getting those errors:

 ![Capture d’écran 2023-11-14 à 15.00.23](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/3/371df1e65473da62e44ad493db028e32ec820a0d.jpeg)

As you can see, it seems like Prismic functions could be the source of the issue, but I can't find any way to solve it right now. All of our packages seem to be on their latest version, especially the Gatsby and Prismic ones.

Do you have any solution?

---

<div class="post-metadata">

**Author:** ![angeloashmore](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/angeloashmore/32/2685_2.png) [@angeloashmore](https://community.prismic.io/u/angeloashmore)\
**Post date:** [November 16, 2023, 7:40pm UTC](https://community.prismic.io/t/webpackerror-95313-building-static-html-failed-for-path-on-castarray-js/14520/2 "2023-11-16T19:40:01Z")

</div>

Hi @pierre, could you check if you are using the `style` prop anywhere throughout your website? It looks like the error comes specifically from the `/tarifs` page, which means you could narrow your search to only the slices and components used on that page.

You may also need to consider the third-party components being used on that page.

`@prismicio/client` and `gatsby-source-prismic` do not touch the Gatsby project's JSX, so I don't think they are causing this error. It seems like the error output is showing an incorrect line of code since `castArray` isn't related to the `style` prop.

---

<div class="post-metadata">

**Author:** ![pierre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pierre/32/8878_2.png) [@pierre](https://community.prismic.io/u/pierre)\
**Post date:** [November 20, 2023, 11:32am UTC](https://community.prismic.io/t/webpackerror-95313-building-static-html-failed-for-path-on-castarray-js/14520/3 "2023-11-20T11:32:44Z")

</div>

Hi @angeloashmore, thanks for your answer.

I don't think the /tarifs page has any particular problem. This is the page targeted here but I just removed all the pages created withe createPage for some tests, but it can be almost any page which send this kind of error.

I will keep checking all the third-party components but nothing found yet unfortunately. Thanks for your help.
