G-Rath/webpack-serve-overlay

Throws error when there is no hot client running

Opened this issue · 0 comments

The specific error is:

Uncaught ReferenceError: __hotClientOptions__ is not defined

The error points to line 125, which assumes __hotClientOptions__ exists in the global scope.

Filed this issue at @G-Rath 's request from #5 (comment) . Due to this error, webpack-serve-overlay cannot run on all environments as it implicitly requires a hot client to exist and will error out the bundle otherwise.

Screenie of browser console just in case:
screen shot 2018-08-09 at 10 49 17 pm

If needed, you can find a reproducible (but not minimal) case in my boilerplate files here by running npm run build:watch and opening index.html.

Didn't file a PR instead since I'm not sure how you'd want to handle this (there are many options).