You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use webpack serve and view the page in a browser.
This works fine with webpack-dev-server 4.11.1. But when I upgrade to 4.12, I get an error page.
Actual Behavior
With 4.12, I get an error page:
Uncaught ReferenceError: window is not defined
at eval (webpack://monaco-utf8-length-incremental/./node_modules/webpack-dev-server/client/overlay.js?:247:56)
Screenshot:
Expected Behavior
With 4.11.1, the expected page loads. It's a page with the Monaco text editor that shows a character count at the bottom.
How Do We Reproduce?
To get the expected behavior (webpack-dev-server 4.11.1):
Yeah, good catch, @malcolm-kee fix is easy, if no document.window do nothing, why it happens - some applications have workers and don't exclude dev server client for entries (because it requires more setup), but it is not critical because it is just dev env, so to avoid it let's do nothing
Bug report
webpack serve
and view the page in a browser.Actual Behavior
With 4.12, I get an error page:
Screenshot:
Expected Behavior
With 4.11.1, the expected page loads. It's a page with the Monaco text editor that shows a character count at the bottom.
How Do We Reproduce?
To get the expected behavior (webpack-dev-server 4.11.1):
git clone https://github.com/cakoose/monaco-utf8-length-incremental
git checkout 8ed7c9430db129788418dc20f4a39eb089164c14
yarn run start
To the the error behavior (webpack-dev-server 4.12):
yarn install
yarn run start
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: