question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[WDS] disconnected! constantly appear on windows 8

See original GitHub issue

One of our team member’s system is win8, when he run webpack-dev-server everything seems worked. But every few seconds a [WDS] disconnected! error shows in console and page then refresh.

In the meantime, this issue don’t appear on win7.

I had tried ways mentioned in #326, still can’t solve the problem.

Here is our webpack.config.js

var webpack = require("webpack");
var path = require("path");
var HtmlWebpackPlugin = require('html-webpack-plugin');

var config = {
    entry: {
        "vendor1": ["react", "react-dom", "react-router", "react-router-redux", "react-redux", "redux"],
        "vendor2": ["crypto-js", "fastclick"],
        "app": "./js/index.js"
    },

    output: {
        path: './build/',
        filename: 'js/[name].js',
        publicPath: '/build/',
        chunkFilename: "js/[id].bundle.js"
    },

    module: {
        loaders: [
            {
                test: /\.js$/, 
                include: [
                    path.resolve(__dirname, "js")
                ],
                exclude: [
                    path.resolve(__dirname, "build"),
                    path.resolve(__dirname, "node_modules")
                ],
                loader: 'babel-loader',
                query: {
                    presets: ['es2015', 'react'],
                    plugins: ['transform-object-assign']
                }
            },

            {
                test: /\.css$/,
                loaders: ["style", "css?-minimize"]
            },

            {
        test: /\.(png|jpg|woff|woff2|eot|ttf|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        loader: 'url?limit=512&&name=[path][name].[ext]?[hash]'
      }
        ]
    },

    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            names: ["vendor2","vendor1"],
          minChunks: Infinity
        })
    ],

    resolve: {
        modulesDirectories: [
      'node_modules'
    ]
    }
};
module.exports = config;

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
SpaceK33zcommented, Oct 9, 2016

@MoeSattler and @superddr, are you using the dev-server via CLI?

Note that in dev-server 2.0 beta, the CLI enables inline mode by default. So if you’re manually including the webpack-dev-server/client module, the module is loaded two times. Either use the cli with --no-inline, or remove the module from your entry.

1reaction
samschcommented, Aug 11, 2017

The pull which fixed this issue originally shouldn’t fail for even longer server delays, and running my test case with updated versions doesn’t fail (in linux). I don’t have immediate access to Windows or a Mac to test on right now.

@ocollins @Sozialarchiv @goodmorninggoaway We need a testcase which fails to diagnose the issue. Feel free to fork from my repo for the test (you will need to update the versions).

Versions I tested with:

webpack-dev-server: "2.7.1",
webpack: "3.5.3",
Firefox: "54.0",
Xubuntu: "16.10"
Read more comments on GitHub >

github_iconTop Results From Across the Web

WDS disconnected! constantly appear - Stack Overflow
Running webpack-dev-server is fine. First page load is ok. But when I refresh the browser, every 2 seconds 'WDS disconnected' appears in ...
Read more >
Windows 8.1 keeps disconnecting from Wireless Network ...
Method 1: I would suggest you to run network troubleshooter to check for any Internet connectivity issues. a. Press the 'Windows + W'...
Read more >
WD External Hard drive keeps connecting and disconnecting
My WD External Hard drive keeps connecting and disconnecting every second or so. I already went into power settings and disabled the USB...
Read more >
GlobalProtect keeps on disconnecting : r/paloaltonetworks
i.e. check the device configuration, it could be you have a simple firewall rule setting that causing it to block the traffic.. If...
Read more >
How do I fix my TP-Link router as it disconnected several times?
i would look at the error logs on the router settings page see if that shows anything. routers shutdown for many reasons it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found