lxieyang / chrome-extension-boilerplate-react

A Chrome Extensions boilerplate using React 18 and Webpack 5.
MIT License
3.47k stars 1.08k forks source link

HMR not working - WebSocket connection to 'wss://localhost:3003/ws' failed #107

Closed goldylucks closed 1 year ago

goldylucks commented 2 years ago

HMR isn't working for me, and I have to reload the unpacked extension on every change through chrome://extensions/

Not sure if it's related to that WS error?

or it's because I'm on an https domain and have webpack running on localhost?

if so, is there a way around this? sounds like the most basic use case for developing an extension, so there must be away w/o jumping through hoops.

if not, I could try:

  1. self certifying my localhost
  2. expose webpack dev server through local tunnel

would love any insights here and thanks for the great project!!

udbmnm commented 2 years ago

Your port 3000 is being used?

goldylucks commented 2 years ago

no, and I see this:

image
kbyatnal commented 1 year ago

having the same issue, any luck @goldylucks?

goldylucks commented 1 year ago

nope, and I'm not using this project anymore 🤷‍♀️

kbyatnal commented 1 year ago

for anyone else that comes along, I switched over to https://github.com/SimplifyJobs/webpack-ext-reloader and it works great