Having this same problem.
When I pause the code with a breakpoint and hover over a Javascript variable in the dev tools (tried chrome and edge) variable does not show in my localHost served app.
It works ok for other applications (random webs not hosted locally).
I am using webpack. Thanks for any idea.