I'm trying to inject FormBuilder class like this into component:
@Component({
   ...
})
export class TaskComponent implements OnInit {
constructor(private fb: FormBuilder) {}
However, it fails and I get the error:
(SystemJS) Can't resolve all parameters for TaskComponent: (?).↵ Error: Can't resolve all parameters for TaskComponent: (?).
If I change the constructor to this form:
constructor(@Inject(FormBuilder) fb: FormBuilder) {    }
It's working fine. What's the problem?
                        
I didn't have
in
tsconfig.jsonand so this part wasn't generated bytsc: