-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
webpack-dev-server
v4 cannot start with 'localhost'
#2934
Comments
Yes, because we resolve |
@alexander-akait But there is a case that some old projects had been set cookies with |
It is just output |
@alexander-akait But most projects will set webpack-dev-server/lib/utils/status.js Line 43 in 910133d
|
Solved in master, you can try |
@alexander-akait The master branch seems cannot work with webpack v5. I use a symbolic link and use webpack-dev-server like this: const WebpackDevServer = require('webpack-dev-server/lib/Server');
// ...
const server = new WebpackDevServer(compiler, devServerOptions)
server.listen(8080, 'localhost, () => {
console.log('Starting server on http://localhost:8080');
}); and it throws an Error:
|
webpack-dev-server
v4 cannot be start with 'localhost'webpack-dev-server
v4 cannot start with 'localhost'
@alexander-akait I think you have fixed tons of these issues on |
Yes, we need to do release, a lot of issue, try to do new release on this week |
@alexander-akait Is there a new version for webpack5? |
@alexander-akait could you share what is the recommanded way to test with |
@rvion why do not use |
📝@alexander-akait I do not use beta-0 because i'm both hacking around and writing types, and I wanted to take into account latest api changes. 🔶 Instally from github directly just do not work (at least with yarn), because some files need a build step after cloning the repo (I get an error related to some 🟢In case it helps I ended-up cloning the repo, tweaking things around, building it, creating an npm tarball with |
@alexander-akait sorry, is there anything blocking the release of |
Some PRs should be merged, I am working on it |
@alexander-akait thanks ! is there any update on this ? |
Should be fixed in master, I'll do it from tomorrow and do new beta release |
Code
Expected Behavior
The browser opens and starts with
http://localhost:8080
Actual Behavior
The browser starts with
http://127.0.0.1:8080
and logs this:For Bugs; How can we reproduce the behavior?
Cause this code
server.address().address
always return 127.0.0.1There is the code permalink:
webpack-dev-server/lib/utils/createDomain.js
Line 14 in 910133d
The text was updated successfully, but these errors were encountered: