enuchi / React-Google-Apps-Script

This is your boilerplate project for developing React apps inside Google Sheets, Docs, Forms and Slides projects. It's perfect for personal projects and for publishing complex add-ons in the Google Workspace Marketplace.
MIT License
1.34k stars 178 forks source link

React hot reload on local dev server #150

Closed Raj00377 closed 1 year ago

Raj00377 commented 1 year ago

Hi,

While running on local machine using npm run start , Any changes in routes doesn't hot reload the page i need to re-run the command npm run start and close the sheet to reflect that change.

Also, I'm getting this warning <w> [ReactRefreshPlugin] Hot Module Replacement (HMR) is not enabled! React Refresh requires HMR to function properly. I have followed all the steps present in readme.md

Screenshot from 2022-10-31 13-04-50

apugoneappu commented 1 year ago

Facing the same issue, @enuchi any help?

Thanks for the awesome work, btw!

enuchi commented 1 year ago

You can ignore the warning. Should be working despite what it says.

Can you confirm it doesn't work for you with a fresh clone? Also not sure what is meant by changes in route as there is only one route per page.

apugoneappu commented 1 year ago

Can confirm it's working 👍

Raj00377 commented 1 year ago

You can ignore the warning. Should be working despite what it says.

Can you confirm it doesn't work for you with a fresh clone? Also not sure what is meant by changes in route as there is only one route per page.

Changes in route means, if i add a new route/ new page i need to re-run the command npm run start

enuchi commented 1 year ago

Yes if you add a new client entrypoint and add the config to the webpack.config.js file you will need to restart npm run start.