Skip to content

With futureDefaults: true, webpack-dev-server warns about own dependency #4128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ludofischer opened this issue Dec 21, 2021 · 0 comments · Fixed by #4132
Closed

With futureDefaults: true, webpack-dev-server warns about own dependency #4128

ludofischer opened this issue Dec 21, 2021 · 0 comments · Fixed by #4132

Comments

@ludofischer
Copy link
Contributor

Bug report

  1. set experiments.futureDefaults: true in webpack.config.js
  2. 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

@ludofischer ludofischer changed the title With futureDefaults: true, webpack-dev-server warns about own url-module With futureDefaults: true, webpack-dev-server warns about own dependency Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant