Closed
Description
Bug report
- set
experiments.futureDefaults: true
inwebpack.config.js
- start webpack-dev-server
Actual Behavior
webpack-dev-server prints this warning about punycode
, which is a dependency of url
which is a dependency of webpack-dev-server
:
WARNING in ./node_modules/url/node_modules/punycode/punycode.js 9:25-31
"global" has been used, it will be undefined in next major version.
The global namespace object is Node.js feature and doesn't present in browser.
@ ./node_modules/url/url.js 24:15-34
@ ./node_modules/webpack-dev-server/client/utils/parseURL.js 1:0-22 35:16-25
@ ./node_modules/webpack-dev-server/client/index.js?protocol=ws%3A&hostname=0.0.0.0&port=8080&pathname=%2Fws&logging=info&reconnect=10 4:0-43 23:26-34
Expected Behavior
No warning about modules that are part of webpack-dev-server.
How Do We Reproduce?
Reproduction repo: https://github.com/ludofischer/webpack-dev-server-future-warning
Please paste the results of npx webpack-cli info
here, and mention other relevant information
System:
OS: Linux 5.15 Fedora Linux 35 (Workstation Edition)
CPU: (16) x64 AMD Ryzen 7 PRO 5850U with Radeon Graphics
Memory: 21.02 GB / 30.25 GB
Binaries:
Node: 16.13.0 - /usr/bin/node
Yarn: 1.22.10 - /usr/bin/yarn
npm: 8.1.0 - /usr/bin/npm
Browsers:
Firefox: 95.0
Packages:
html-webpack-plugin: ^5.5.0 => 5.5.0
webpack: ^5.65.0 => 5.65.0
webpack-cli: ^4.9.1 => 4.9.1
webpack-dev-server: ^4.7.0 => 4.7.0
Metadata
Metadata
Assignees
Labels
No labels