{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/2277","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/2277/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/2277/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/2277/events","html_url":"https://github.com/angular/angular-cli/issues/2277","id":178423651,"number":2277,"title":"ng serve & ng build not working after build a new project with ng new","user":{"login":"ZoeChan2013","id":12054633,"avatar_url":"https://avatars.githubusercontent.com/u/12054633?v=3","gravatar_id":"","url":"https://api.github.com/users/ZoeChan2013","html_url":"https://github.com/ZoeChan2013","followers_url":"https://api.github.com/users/ZoeChan2013/followers","following_url":"https://api.github.com/users/ZoeChan2013/following{/other_user}","gists_url":"https://api.github.com/users/ZoeChan2013/gists{/gist_id}","starred_url":"https://api.github.com/users/ZoeChan2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZoeChan2013/subscriptions","organizations_url":"https://api.github.com/users/ZoeChan2013/orgs","repos_url":"https://api.github.com/users/ZoeChan2013/repos","events_url":"https://api.github.com/users/ZoeChan2013/events{/privacy}","received_events_url":"https://api.github.com/users/ZoeChan2013/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T18:17:47Z","updated_at":"2016-09-21T19:49:58Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n1. OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\n   Mac OSX Yosemite\r\n\r\n2. Versions. Please run `ng --version`. If there's nothing outputted, please run\r\nin a Terminal: `node --version` and paste the result here:\r\n   angular-cli: 1.0.0-beta.14\r\n   node: 5.11.1\r\n   os: darwin x64\r\n\r\n3. Repro steps. Was this an app that wasn't created using the CLI? What change did you\r\n   do on your code? etc.\r\n   `ng new angular2-demo`\r\n   `cd angular2-demo`\r\n   `ng serve`\r\n\r\n\r\n4. The log given by the failure. Normally this include a stack trace and some\r\n   more information.\r\n    Could not start watchman; falling back to NodeWatcher for file system events.\r\nVisit http://ember-cli.com/user-guide/#watchman for more info.\r\nInvalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.\r\n - configuration has an unknown property 'tslint'. These properties are valid:\r\n   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }\r\n   For typos: please correct them.\r\n   For loader options: webpack 2 no longer allows custom properties in configuration.\r\n     Loaders should be updated to allow passing options via loader options in module.rules.\r\n     Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:\r\n     plugins: {\r\n       new webpack.LoaderOptionsPlugin({\r\n         options: {\r\n           tslint: ...\r\n         }\r\n       })\r\n     }\r\n - configuration.module has an unknown property 'preLoaders'. These properties are valid:\r\n   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, loaders?, noParse?, rules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }\r\n   Options affecting the normal modules (`NormalModuleFactory`).\r\n - configuration.node['fs'] should be one of these:\r\n   false | true | \"mock\"\r\n - configuration.node['crypto'] should be one of these:\r\n   false | true | \"mock\"\r\n - configuration.node.global should be a boolean.\r\n - configuration.resolve has an unknown property 'root'. These properties are valid:\r\n   object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache? }\r\n - configuration.resolve.extensions[0] should not be empty.\r\nWebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.\r\n - configuration has an unknown property 'tslint'. These properties are valid:\r\n   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }\r\n   For typos: please correct them.\r\n   For loader options: webpack 2 no longer allows custom properties in configuration.\r\n     Loaders should be updated to allow passing options via loader options in module.rules.\r\n     Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:\r\n     plugins: {\r\n       new webpack.LoaderOptionsPlugin({\r\n         options: {\r\n           tslint: ...\r\n         }\r\n       })\r\n     }\r\n - configuration.module has an unknown property 'preLoaders'. These properties are valid:\r\n   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, loaders?, noParse?, rules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }\r\n   Options affecting the normal modules (`NormalModuleFactory`).\r\n - configuration.node['fs'] should be one of these:\r\n   false | true | \"mock\"\r\n - configuration.node['crypto'] should be one of these:\r\n   false | true | \"mock\"\r\n - configuration.node.global should be a boolean.\r\n - configuration.resolve has an unknown property 'root'. These properties are valid:\r\n   object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache? }\r\n - configuration.resolve.extensions[0] should not be empty.\r\n    at webpack (/Users/shuyi_chen/github/angular2-demo/node_modules/webpack/lib/webpack.js:16:9)\r\n    at Class.exports.default.Task.extend.run (/Users/shuyi_chen/github/angular2-demo/node_modules/angular-cli/tasks/serve-webpack.js:23:27)\r\n    at /Users/shuyi_chen/github/angular2-demo/node_modules/angular-cli/commands/serve.js:84:26\r\n    at tryCatch (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/-internal.js:195:12)\r\n    at invokeCallback (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/-internal.js:210:13)\r\n    at publish (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/-internal.js:178:7)\r\n    at flush (/Users/shuyi_chen/github/angular2-demo/node_modules/es6-promise/dist/lib/es6-promise/asap.js:94:5)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n\r\n\r\n\r\n5. Mention any other details that might be useful.\r\n    I use `ng new` create a project last week, all `ng` commands are still working for that project. I didn't update angular-cli after I create the old project. But today after use `ng new` to build a project, `ng server` &  `ng build` suddenly cannot work and throws error.\r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/248722879","html_url":"https://github.com/angular/angular-cli/issues/2277#issuecomment-248722879","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/2277","id":248722879,"user":{"login":"JanStureNielsen","id":4248566,"avatar_url":"https://avatars.githubusercontent.com/u/4248566?v=3","gravatar_id":"","url":"https://api.github.com/users/JanStureNielsen","html_url":"https://github.com/JanStureNielsen","followers_url":"https://api.github.com/users/JanStureNielsen/followers","following_url":"https://api.github.com/users/JanStureNielsen/following{/other_user}","gists_url":"https://api.github.com/users/JanStureNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/JanStureNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanStureNielsen/subscriptions","organizations_url":"https://api.github.com/users/JanStureNielsen/orgs","repos_url":"https://api.github.com/users/JanStureNielsen/repos","events_url":"https://api.github.com/users/JanStureNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/JanStureNielsen/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T19:49:57Z","updated_at":"2016-09-21T19:49:57Z","body":"And check SO: http://stackoverflow.com/questions/39600939/invalid-configuration-object-webpack-has-been-initialised-using-a-configuration/39601224#39601224"}}
{"actor":{"display_login":"JanStureNielsen"}}