# New react component ignored by BuildClientProjects/webpack

**URL:** <https://forum.litium.com/t/new-react-component-ignored-by-buildclientprojects-webpack/2667>\
**Category:** Questions\
**Tags:** accelerator, litium-8\
**Created:** [September 6, 2022, 7:01am UTC](https://forum.litium.com/t/new-react-component-ignored-by-buildclientprojects-webpack/2667 "2022-09-06T07:01:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdxperbol](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/kdxperbol/32/513_2.png) [@kdxperbol](https://forum.litium.com/u/kdxperbol)\
**Post date:** [September 6, 2022, 7:01am UTC](https://forum.litium.com/t/new-react-component-ignored-by-buildclientprojects-webpack/2667/1 "2022-09-06T07:01:42Z")

</div>

We’ve added a new custom react component to `Client\Scripts\Components`, but it’s completely ignored by `BuildClientProjects`, or is at least missing from the output in `wwwroot\ui`.

Webpack output says `./Scripts/Components/*.js`.

Are we missing something obvious? We don’t remember having to do anything special in Litium 7.

`yarn --verbose run prod` directly on the MVC project shows no related warnings or errors.

Tried emptying the `ui` folder manually before building.

Litium version: 8.3 + accelerator

---

<div class="post-metadata">

**Author:** ![ton.nguyen](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ton.nguyen/32/989_2.png) [@ton.nguyen](https://forum.litium.com/u/ton.nguyen)\
**Post date:** [September 6, 2022, 9:11am UTC](https://forum.litium.com/t/new-react-component-ignored-by-buildclientprojects-webpack/2667/2 "2022-09-06T09:11:08Z")

</div>

It can be ignored because it is not used anywhere.

---

<div class="post-metadata">

**Author:** ![kdxperbol](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/kdxperbol/32/513_2.png) [@kdxperbol](https://forum.litium.com/u/kdxperbol)\
**Post date:** [September 6, 2022, 11:35am UTC](https://forum.litium.com/t/new-react-component-ignored-by-buildclientprojects-webpack/2667/3 "2022-09-06T11:35:12Z")

</div>

Thanks. We can see that with `yarn run build:w` running we can manipulate `index.js` and other files to at least get the new component recognized. Will do some more testing.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [October 4, 2022, 11:35am UTC](https://forum.litium.com/t/new-react-component-ignored-by-buildclientprojects-webpack/2667/4 "2022-10-04T11:35:26Z")

</div>

Closed on October 4, 2022, 11:35am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
