test_124
test_124

Reputation: 1403

Angular2 CLI "ng serve" not working on windows

When trying to run "ng serve" on my windows cmd I am getting the following Error:

WebpackOptionsValidationError: Invalid configuration object. Webpack has been in itialised using a configuration object that does not match the API schema. - configuration has an unknown property 'tslint'. These properties are valid: object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, s tats?, target?, watch?, watchOptions? } For typos: please correct them. For loader options: webpack 2 no longer allows custom properties in configura tion. Loaders should be updated to allow passing options via loader options in mo dule.rules. Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:

PS: I am following https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md to install & setup AngularFire2.

Before getting this error I did:

  1. npm install -g angular-cli
  2. npm install -g typings
  3. npm install -g typescript
  4. ng new oct25
  5. cd oct25
  6. ng serve //This is where I am getting Error

enter image description here

Upvotes: 1

Views: 5254

Answers (1)

test_124
test_124

Reputation: 1403

Try deleting node_ modules folder and npm install again. It worked..!!

Upvotes: 4

Related Questions