Answer the question
In order to leave comments, you need to log in
Why does a type error occur in the template of an Angular component if all types are specified?
Good day! We are transferring the project from Angular 6 to version 12. Encountered linter errors
Error: path/to/component/some.component.html:982:41 - error TS2339: Property 'blocked' does not exist on type 'unknown'.
[isDisabled]="object.blocked"
Error: path/to/component/some.component.html:1162:110 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'SomeStatus'.
<button class="btn" (click)="someMethod(object, object.courses[0], $event)">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question