1

I am using Angular2 and the Visuel Studio Code give me this error : enter image description here

This is my tsconfig.json :

 {
  "compilerOptions": {
    "target": "es5",
    "module": "system",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false,
    "suppressImplicitAnyIndexErrors": true
  }
}
3
  • Probably because you did not import it... Commented Mar 2, 2018 at 21:23
  • try this " name : new FormControl(null,[Validators.required]) " and also because you imported Validator not Validators Commented Mar 2, 2018 at 21:25
  • it's a typo. you may close this question Commented Mar 2, 2018 at 22:11

1 Answer 1

3

Change Validator to Validators in your import statement

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.