# Webpack hot-reload not working in out-of-the-box zoomapps-advancedsample-react

**URL:** <https://devforum.zoom.us/t/webpack-hot-reload-not-working-in-out-of-the-box-zoomapps-advancedsample-react/77291>\
**Category:** Zoom Apps\
**Created:** [October 12, 2022, 5:16am UTC](https://devforum.zoom.us/t/webpack-hot-reload-not-working-in-out-of-the-box-zoomapps-advancedsample-react/77291 "2022-10-12T05:16:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![biinster](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biinster](https://devforum.zoom.us/u/biinster)\
**Post date:** [October 12, 2022, 5:16am UTC](https://devforum.zoom.us/t/webpack-hot-reload-not-working-in-out-of-the-box-zoomapps-advancedsample-react/77291/1 "2022-10-12T05:16:24Z")

</div>

I am making a simple one-page classroom management app with React based off the zoomapps-advancedsample-react, and have to restart the containers every time to test the code in the frontend.

Zoomapps-sample-js hot-realoads just fine, though I have to refresh the page in the embedded browser.

I suspect this has something to do with the source code not syncing with the Docker containers, so I’ve tried following this [https://stackoverflow.com/a/72717329](https://stackoverflow.com/a/72717329) but it seems like webpack is configured somehow differently in the reference app, e.g. there is no webpack.config.js file to be found anywhere.

There are just too many unknowns for me to keep trying to figure this out on my own so any help would be great!

P.S. Config files are as they come; the only change to the original is the .env file. Everything else works as it should (so far).

---

<div class="post-metadata">

**Author:** ![JonStewart](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonstewart/32/36192_2.png) [@JonStewart](https://devforum.zoom.us/u/JonStewart)\
**Post date:** [October 17, 2022, 8:45pm UTC](https://devforum.zoom.us/t/webpack-hot-reload-not-working-in-out-of-the-box-zoomapps-advancedsample-react/77291/2 "2022-10-17T20:45:29Z")

</div>

Hi @biinster and thanks. Can you clarify really quickly - In order to see frontend changes, do you need to a) restart docker containers (your 1st paragraph) or b) refresh the page in the embedded browser (2nd paragraph)?

We’ll look into this. Likely it has to do with the web socket protocol not supported by the Docker container instance.

Under the hood, this is really create-react-app

---

<div class="post-metadata">

**Author:** ![biinster](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biinster](https://devforum.zoom.us/u/biinster)\
**Post date:** [November 28, 2022, 5:31pm UTC](https://devforum.zoom.us/t/webpack-hot-reload-not-working-in-out-of-the-box-zoomapps-advancedsample-react/77291/3 "2022-11-28T17:31:58Z")

</div>

**Solved:**

1. In ./frontend/ clone the “.env.example” file and rename the copy “.env”.
2. Restart the containers and the app.

This sets an env variable CHOKIDAR\_USEPOLLING=true, which is necessary when running Webpack in a container. Found at [https://create-react-app.dev/docs/troubleshooting](https://create-react-app.dev/docs/troubleshooting).

I think this really needs to be in the README…

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 2, 2022, 2:17am UTC](https://devforum.zoom.us/t/webpack-hot-reload-not-working-in-out-of-the-box-zoomapps-advancedsample-react/77291/4 "2022-12-02T02:17:48Z")

</div>

Thanks for sharing your solution and your feedback @biinster!
