Skip to content
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

Improve/silence WebpackDevServer client #263

Closed
gaearon opened this issue Jul 28, 2016 · 7 comments · Fixed by #744
Closed

Improve/silence WebpackDevServer client #263

gaearon opened this issue Jul 28, 2016 · 7 comments · Fixed by #744

Comments

@gaearon
Copy link
Contributor

gaearon commented Jul 28, 2016

This doesn’t help anyone, it’s just annoying:

screen shot 2016-07-28 at 19 42 11

Similarly, these logs are not useful to us:

screen shot 2016-07-28 at 19 45 02

We should a PR to webpack-dev-server to deduplicate logs, and to optionally disable some of them. If it isn’t accepted, we should replace these parts with custom scripts—they are really small, easy to tweak, and almost never change.

@alexzherdev
Copy link
Contributor

I thought I'd just go ahead and file an issue first to gauge the interest. webpack/webpack-dev-server#540

@SpaceK33z
Copy link
Contributor

Hi, could you guys check if this PR webpack/webpack-dev-server#579 works for you? I'm maintaining webpack-dev-server and interested to work with you to fix annoyances :).

@gaearon
Copy link
Contributor Author

gaearon commented Sep 2, 2016

Left a comment, thank you for looking at this!

@chall8908
Copy link

chall8908 commented Sep 3, 2016

Something that worked for me was changing this line in config/webpack.config.dev.js:
require.resolve('webpack-dev-server/client') + '?/',
to
require.resolve('webpack-dev-server/client') + '?http://0.0.0.0:0/',

After that, the requests actually all went through and it seems to be working correctly.

EDIT: currently using version 0.4.0

@gaearon
Copy link
Contributor Author

gaearon commented Sep 3, 2016

If you see this normally please file an issue describing your setup.
I see these errors when I stop the server (which is expected).

My issue is about the noisy reconnect behavior.
If you actually can't connect, that's a different problem, needing a separate issue.

@SpaceK33z
Copy link
Contributor

SpaceK33z commented Sep 13, 2016

For future reference, this has been fixed in dev-server v2 (in beta). See the changelog for more info.

@gaearon
Copy link
Contributor Author

gaearon commented Sep 24, 2016

Also backported to 1.x and now used by CRA (thanks!)
With exponential backoff I only see a few of these so I think it's fine now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants