{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/727","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/727/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/727/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/727","id":198124639,"number":727,"title":"V2  Can't resolve 'fs' in webpack-dev-server/client","user":{"login":"beliefgp","id":12657964,"avatar_url":"https://avatars.githubusercontent.com/u/12657964?v=3","gravatar_id":"","url":"https://api.github.com/users/beliefgp","html_url":"https://github.com/beliefgp","followers_url":"https://api.github.com/users/beliefgp/followers","following_url":"https://api.github.com/users/beliefgp/following{/other_user}","gists_url":"https://api.github.com/users/beliefgp/gists{/gist_id}","starred_url":"https://api.github.com/users/beliefgp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beliefgp/subscriptions","organizations_url":"https://api.github.com/users/beliefgp/orgs","repos_url":"https://api.github.com/users/beliefgp/repos","events_url":"https://api.github.com/users/beliefgp/events{/privacy}","received_events_url":"https://api.github.com/users/beliefgp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-30T09:33:16Z","updated_at":"2016-12-30T10:23:00Z","closed_at":null,"body":"There is an error when I use webpack-dev-server；\r\nwebpack: 2.2.0-rc.1\r\nwebpack-dev-server: 2.2.0-rc.0\r\nnode: 6.6.0\r\n```\r\nERROR in ./~/debug/src/node.js\r\nModule not found: Error: Can't resolve 'net' in '/Users/gaopeng/work/ykpm/node_modules/debug/src'\r\n @ ./~/debug/src/node.js 186:16-30\r\n @ ./~/debug/src/index.js\r\n @ ./~/sockjs-client/lib/main.js\r\n @ ./~/sockjs-client/lib/entry.js\r\n @ (webpack)-dev-server/client/socket.js\r\n @ (webpack)-dev-server/client?http://local.youku.com:3333/\r\n @ multi js/lib\r\n```\r\nwebpackConfig\r\n```\r\n{\r\n  target: 'web',\r\n  context: '/Users/gaopeng/work/ykpm',\r\n  entry:  { \r\n     'js/play/live': [\r\n         'webpack-dev-server/client?http://local.youku.com:3333/',\r\n         'webpack/hot/dev-server',\r\n         'js/play/live.js'\r\n    ]\r\n  },\r\n  output: { \r\n     path: '/',\r\n     publicPath: '/',\r\n     filename: '[name].js',\r\n     pathinfo: false,\r\n     chunkFilename: '[name].js',\r\n  },\r\n  module: {\t\t\t\t\t\t\t\t\t\t\t\t\r\n      rules: [{\r\n          test: /.js?$/,\r\n\t exclude: /node_modules/,\r\n\t use: [\r\n\t     { loader: 'babel-loader' }\r\n\t ]\r\n      }]\t\t\t\t\t\t\t\t\t\r\n  },\r\n  resolve: { \r\n     modules: [ '/Users/gaopeng/work/ykpm/src', 'node_modules' ],\r\n     extensions: [ '.js', '.json' ]\r\n  },\r\n  plugins:[new HotModuleReplacementPlugin()]\r\n}\r\n```\r\n\r\ndevServerConfig\r\n```\r\n{\r\n contentBase: './static/',\r\n  https: false,\r\n  host: 'local.yk.com',\r\n  port: 3333,\r\n  hot: true,\r\n  inline: true,\r\n  stats: { colors: true }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/269755335","html_url":"https://github.com/webpack/webpack-dev-server/issues/727#issuecomment-269755335","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/727","id":269755335,"user":{"login":"beliefgp","id":12657964,"avatar_url":"https://avatars.githubusercontent.com/u/12657964?v=3","gravatar_id":"","url":"https://api.github.com/users/beliefgp","html_url":"https://github.com/beliefgp","followers_url":"https://api.github.com/users/beliefgp/followers","following_url":"https://api.github.com/users/beliefgp/following{/other_user}","gists_url":"https://api.github.com/users/beliefgp/gists{/gist_id}","starred_url":"https://api.github.com/users/beliefgp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beliefgp/subscriptions","organizations_url":"https://api.github.com/users/beliefgp/orgs","repos_url":"https://api.github.com/users/beliefgp/repos","events_url":"https://api.github.com/users/beliefgp/events{/privacy}","received_events_url":"https://api.github.com/users/beliefgp/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T10:23:00Z","updated_at":"2016-12-30T10:23:00Z","body":"I am running dev-server in node, remove webpack-dev-server/client, can running, but not hot update……\r\n```\r\nlet compiler = webpack(webpackConfig(compilerOptions, root));\r\nlet server = new WebpackDevServer(compiler, devServerConfig);\r\n```"}}
{"actor":{"display_login":"beliefgp"}}