{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/413","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/413/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/413/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/413","id":136327731,"number":413,"title":"Module build failed with webpack-dev-server","user":{"login":"fancy-mind","id":5188754,"avatar_url":"https://avatars.githubusercontent.com/u/5188754?v=3","gravatar_id":"","url":"https://api.github.com/users/fancy-mind","html_url":"https://github.com/fancy-mind","followers_url":"https://api.github.com/users/fancy-mind/followers","following_url":"https://api.github.com/users/fancy-mind/following{/other_user}","gists_url":"https://api.github.com/users/fancy-mind/gists{/gist_id}","starred_url":"https://api.github.com/users/fancy-mind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancy-mind/subscriptions","organizations_url":"https://api.github.com/users/fancy-mind/orgs","repos_url":"https://api.github.com/users/fancy-mind/repos","events_url":"https://api.github.com/users/fancy-mind/events{/privacy}","received_events_url":"https://api.github.com/users/fancy-mind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T09:19:54Z","updated_at":"2016-02-25T09:19:54Z","closed_at":null,"body":"The following is the error message \r\n\r\nERROR in ./public/main.js\r\nModule build failed: SyntaxError: E:/Coding/Workspaces/node/helloworld/public/main.js: Unexpected token (6:2)\r\n  4 |\r\n  5 | ReactDOM.render(\r\n> 6 |   <CommentBox url=\"http://localhost:8080/api/comments\"/>,\r\n    |   ^\r\n  7 |   document.getElementById('content')\r\n  8 | );\r\n  9 |\r\n    at Parser.pp.raise (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:1425:13)\r\n    at Parser.pp.unexpected (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:2905:8)\r\n    at Parser.pp.parseExprAtom (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:754:12)\r\n    at Parser.pp.parseExprSubscripts (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:509:19)\r\n    at Parser.pp.parseMaybeUnary (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:489:19)\r\n    at Parser.pp.parseExprOps (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:420:19)\r\n    at Parser.pp.parseMaybeConditional (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:402:19)\r\n    at Parser.pp.parseMaybeAssign (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:365:19)\r\n    at Parser.pp.parseExprListItem (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:1232:16)\r\n    at Parser.pp.parseCallExpressionArguments (E:\\Coding\\Workspaces\\node\\helloworld\\node_modules\\babel-core\\node_modules\\babylon\\index.js:585:20)\r\n @ multi app\r\n\r\n---------------------------\r\n\r\nAnd this is my webpack.config   \r\n\r\n\r\nvar path = require('path');\r\nvar webpack = require('webpack');\r\nmodule.exports = {\r\n  entry: {\r\n    app: [\r\n          'webpack-dev-server/client?http://127.0.0.1:3000', // WebpackDevServer host and port\r\n          'webpack/hot/only-dev-server',\r\n          './public/main.js'\r\n         ]\r\n    },\r\n  output: {\r\n    path: path.join(__dirname, 'build'),\r\n    filename: '[name].js',\r\n    publicPath: 'http://127.0.0.1:3000/static/'\r\n  },\r\n  module: {\r\n    loaders: [\r\n      { test: /\\.js$/, loaders: ['react-hot-loader','babel-loader'] ,include: path.join(__dirname,'public')},\r\n      { test: /\\.less$/, loader: 'style-loader!css-loader!less-loader' }, \r\n      { test: /\\.css$/, loader: 'style-loader!css-loader' },\r\n      { test: /\\.(png|jpg)$/, loader: 'url-loader?limit=8192' } \r\n    ]\r\n  },\r\n  plugins:[\r\n    new webpack.HotModuleReplacementPlugin()\r\n  ]\r\n};\r\n"}}