{"action":"created","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1176","repository_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1176/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1176/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1176/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/1176","id":189337671,"number":1176,"title":"validateSchema","user":{"login":"rtaum","id":13500710,"avatar_url":"https://avatars.githubusercontent.com/u/13500710?v=3","gravatar_id":"","url":"https://api.github.com/users/rtaum","html_url":"https://github.com/rtaum","followers_url":"https://api.github.com/users/rtaum/followers","following_url":"https://api.github.com/users/rtaum/following{/other_user}","gists_url":"https://api.github.com/users/rtaum/gists{/gist_id}","starred_url":"https://api.github.com/users/rtaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtaum/subscriptions","organizations_url":"https://api.github.com/users/rtaum/orgs","repos_url":"https://api.github.com/users/rtaum/repos","events_url":"https://api.github.com/users/rtaum/events{/privacy}","received_events_url":"https://api.github.com/users/rtaum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-15T09:16:14Z","updated_at":"2016-12-07T13:10:57Z","closed_at":null,"body":"after clone repository and run \"npm start\" I got error \r\n\r\nTypeError: webpack.validateSchema is not a function\r\n    at new Server (C:\\Users\\artyom_avetisyan\\Documents\\projects\\angular2-webpack-starter\\node_modules\\webpack-dev-server\\lib\\Server.js:23:33)\r\n    at startDevServer (C:\\Users\\artyom_avetisyan\\Documents\\projects\\angular2-webpack-starter\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js:369:12)\r\n    at processOptions (C:\\Users\\artyom_avetisyan\\Documents\\projects\\angular2-webpack-starter\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js:307:3)\r\n    at Object.<anonymous> (C:\\Users\\artyom_avetisyan\\Documents\\projects\\angular2-webpack-starter\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js:431:1)\r\n    at Module._compile (module.js:556:32)\r\n    at Object.Module._extensions..js (module.js:565:10)\r\n    at Module.load (module.js:473:32)\r\n    at tryModuleLoad (module.js:432:12)\r\n    at Function.Module._load (module.js:424:3)\r\n    at Module.runMain (module.js:590:10)\r\n    at run (bootstrap_node.js:394:7)\r\n    at startup (bootstrap_node.js:149:9)\r\n    at bootstrap_node.js:509:3\r\n\r\n\r\nI suppose it is result of beta version webpack-dev-server (\"webpack-dev-server\": \"^2.1.0-beta.9\"). \r\nAfter removing \r\n\tvar validationErrors = webpack.validateSchema(optionsSchema, options);\r\n\tif(validationErrors.length) {\r\n\t\tthrow new OptionsValidationError(validationErrors);\r\n\t}\r\nin Server.js everything starts working."},"comment":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/comments/265443344","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/1176#issuecomment-265443344","issue_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1176","id":265443344,"user":{"login":"coolman565","id":8748688,"avatar_url":"https://avatars.githubusercontent.com/u/8748688?v=3","gravatar_id":"","url":"https://api.github.com/users/coolman565","html_url":"https://github.com/coolman565","followers_url":"https://api.github.com/users/coolman565/followers","following_url":"https://api.github.com/users/coolman565/following{/other_user}","gists_url":"https://api.github.com/users/coolman565/gists{/gist_id}","starred_url":"https://api.github.com/users/coolman565/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolman565/subscriptions","organizations_url":"https://api.github.com/users/coolman565/orgs","repos_url":"https://api.github.com/users/coolman565/repos","events_url":"https://api.github.com/users/coolman565/events{/privacy}","received_events_url":"https://api.github.com/users/coolman565/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T13:10:57Z","updated_at":"2016-12-07T13:10:57Z","body":"In package.json replace 'webpack-dev-server' with 'node ./node_modules/webpack/bin/webpack.js'\r\nThis will call the local module version of webpack-dev-server and not the global one.\r\n\r\n`\"scripts\": {\r\n...\r\n    \"build:dev\": \"node ./node_modules/webpack/bin/webpack.js --config config/webpack.dev.js --progress --profile\",\r\n    \"build:docker\": \"npm run build:prod && docker build -t angular2-webpack-start:latest .\",\r\n    \"build:prod\": \"node ./node_modules/webpack/bin/webpack.js --config config/webpack.prod.js  --progress --profile --bail\",\r\n   ...\r\n    \"github-deploy:dev\": \"node ./node_modules/webpack/bin/webpack.js --config config/webpack.github-deploy.js --progress --profile --github-dev\",\r\n    \"github-deploy:prod\": \"node ./node_modules/webpack/bin/webpack.js --config config/webpack.github-deploy.js --progress --profile --github-prod\",\r\n  ...\r\n    \"server:dev\": \"node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --config config/webpack.dev.js --progress --profile --watch --content-base src/\",\r\n  ...\r\n  `"}}
{"actor":{"display_login":"coolman565"}}