title: TypeError: Cannot read properties of null (reading '_rawValidators')
body: <p>I'm trying to use formgroup and formcontrol at Angular but on ng serve,its returning an error at console</p>
  <p>Does anyone knows how to fix it?</p>
  <blockquote>
  <p>TypeError: Cannot read properties of null (reading '_rawValidators')</p>
  </blockquote>
  <p>my HTML:</p>
  <pre><code>                        &lt;form [formGroup]=&quot;formOrcamento&quot;&gt;
                          &lt;div class=&quot;row&quot;&gt;
                              &lt;div class=&quot;col-md-4&quot;&gt;
                                  &lt;mat-form-field class=&quot;example-full-width&quot; appearance=&quot;outline&quot;&gt;
                                      &lt;mat-label&gt;Quantidade de passagens&lt;/mat-label&gt;
                                      &lt;input matInput type=&quot;number&quot; value=&quot;qtdPassagens&quot; formControlName=&quot;qtdPassagens&quot;&gt;
                                  &lt;/mat-form-field&gt;
                              &lt;/div&gt;
                              &lt;div class=&quot;col-md-4&quot;&gt;
                                  &lt;mat-form-field appearance=&quot;outline&quot;&gt;
                                      &lt;mat-label&gt;Ida e Volta?&lt;/mat-label&gt;
                                      &lt;mat-select [(ngModel)]=&quot;idaEVolta&quot;&gt;
                                          &lt;mat-option value=&quot;false&quot;&gt;Somente IDA&lt;/mat-option&gt;
                                          &lt;mat-option value=&quot;true&quot;&gt;IDA E VOLTA&lt;/mat-option&gt;
                                      &lt;/mat-select&gt;
                                  &lt;/mat-form-field&gt;
                              &lt;/div&gt;
  
                          &lt;/div&gt;
                          &lt;div class=&quot;row&quot;&gt;
                              &lt;div class=&quot;col-md-4&quot;&gt;
                                  &lt;mat-form-field class=&quot;example-full-width&quot; appearance=&quot;outline&quot;&gt;
                                      &lt;mat-label&gt;Valor no PIX&lt;/mat-label&gt;
                                      &lt;input matInput type=&quot;number&quot; value=&quot;valorVendaPIX&quot; formControlName=&quot;valorVendaPIX&quot;&gt;
                                  &lt;/mat-form-field&gt;
                              &lt;/div&gt;
                              &lt;div class=&quot;col-md-4&quot;&gt;
                                  &lt;mat-form-field class=&quot;example-full-width&quot; appearance=&quot;outline&quot;&gt;
                                      &lt;mat-label&gt;Milhas&lt;/mat-label&gt;
                                      &lt;input matInput type=&quot;number&quot; value=&quot;qtdMilhas&quot; formControlName=&quot;qtdMilhas&quot;&gt;
                                  &lt;/mat-form-field&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  </code></pre>
  <p>my TS:</p>
  <pre><code>export class OrcamentoComponent implements OnInit {
    formOrcamento: FormGroup;
  
    constructor(private service: melteraService) {
    this.formOrcamento = new FormGroup({
      qtdPassagens: new FormControl(),
      valorVendaPIX: new FormControl(),
      qtdMilhas: new FormControl()
    })
  }
  </code></pre>