Skip to content

Instantly share code, notes, and snippets.

@vchimev
Created December 4, 2020 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vchimev/706a5d9a80299e98460d69a5bee362f0 to your computer and use it in GitHub Desktop.
Save vchimev/706a5d9a80299e98460d69a5bee362f0 to your computer and use it in GitHub Desktop.
Angular Compiler Full Template Type Check Option Errors
ERROR in src/app/shared/filters/left-filter/left-filter.component.html:21:81 - error TS2339: Property 'displayCheck' does not exist on type 'string | number | { displayCheck: boolean; }'.
Property 'displayCheck' does not exist on type 'string'.
21 <span *ngIf="selectedCriteria[criteria.filterFieldName] && !selectedCriteria[criteria.filterFieldName]?.displayCheck"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/shared/filters/left-filter/left-filter.component.ts:44:18
44 templateUrl: './left-filter.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component LeftFilterComponent.
src/app/shared/filters/left-filter/left-filter.component.html:31:34 - error TS2339: Property 'displayCheck' does not exist on type 'string | number | { displayCheck: boolean; }'.
Property 'displayCheck' does not exist on type 'string'.
31 <span *ngIf="selectedCriteria[criteria.filterFieldName]?.displayCheck" class="badge badge-custom badge-custom-check">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/shared/filters/left-filter/left-filter.component.ts:44:18
44 templateUrl: './left-filter.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component LeftFilterComponent.
src/app/shared/filters/left-filter/time-range-select/time-range-select.component.html:7:45 - error TS2341: Property 'selectedItem' is private and only accessible within class 'TimeRangeSelectComponent'.
7 [ngClass]="{'active': item===selectedItem}">{{item.displayName}}</p>
~~~~~~~~~~~~
src/app/shared/filters/left-filter/time-range-select/time-range-select.component.ts:21:18
21 templateUrl: './time-range-select.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TimeRangeSelectComponent.
src/app/remediation/components/actions/remediation-action-details/remediation-action-findings/remediation-action-submitted-findings/remediation-action-submitted-findings.component.html:100:49 - error TS2554: Expected 1 arguments, but got 2.
100 {{ (finding | resolvedDate: [] | date: 'MMM dd h:mm:ss a' ) || '-'}}
~~
src/app/remediation/components/actions/remediation-action-details/remediation-action-findings/remediation-action-submitted-findings/remediation-action-submitted-findings.component.ts:30:18
30 templateUrl: './remediation-action-submitted-findings.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component RemediationActionSubmittedFindingsComponent.
src/app/remediation/components/worker-groups/worker-group-wizard-v2/steps/worker-group-wizard-step3-v2/worker-group-wizard-step3-v2.component.html:19:96 - error TS2339: Property 'activeCloudAcc' does not exist on type 'WorkerGroupWizardStep3V2Component'.
19 <tr *ngFor="let cloudAcc of awsFormArray.controls; let i = index" (click)="activeCloudAcc = i"
~~~~~~~~~~~~~~
src/app/remediation/components/worker-groups/worker-group-wizard-v2/steps/worker-group-wizard-step3-v2/worker-group-wizard-step3-v2.component.ts:47:18
47 templateUrl: './worker-group-wizard-step3-v2.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component WorkerGroupWizardStep3V2Component.
src/app/remediation/components/worker-groups/worker-group-wizard-v2/steps/worker-group-wizard-step3-v2/worker-group-wizard-step3-v2.component.html:72:98 - error TS2339: Property 'activeCloudAcc' does not exist on type 'WorkerGroupWizardStep3V2Component'.
72 <tr *ngFor="let cloudAcc of azureFormArray.controls; let i = index" (click)="activeCloudAcc = i"
~~~~~~~~~~~~~~
src/app/remediation/components/worker-groups/worker-group-wizard-v2/steps/worker-group-wizard-step3-v2/worker-group-wizard-step3-v2.component.ts:47:18
47 templateUrl: './worker-group-wizard-step3-v2.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component WorkerGroupWizardStep3V2Component.
src/app/resource-manager/project-access/project-access-grid/project-access-grid.component.html:6:45 - error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'string'.
6 [clrDgSelected]="(perms.any(['vss.projects.edit']) | async) ? selected : null">
~~~~~~~~~~~~~~~~~~~~~
src/app/resource-manager/project-access/project-access-grid/project-access-grid.component.ts:25:18
25 templateUrl: './project-access-grid.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component ProjectAccessGridComponent.
src/app/resource-manager/resource/resource-list/resource-list.component.html:36:59 - error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'string'.
36 <clr-datagrid [clrDgSelected]="(perms.any(['vss.projects.edit']) | async) ? selected : null"
~~~~~~~~~~~~~~~~~~~~~
src/app/resource-manager/resource/resource-list/resource-list.component.ts:28:18
28 templateUrl: './resource-list.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component ResourceListComponent.
src/app/shared/charts/donut-chart/donut-chart.component.html:2:59 - error TS2339: Property 'width' does not exist on type 'DonutChartComponent'.
2 <canvas [ngStyle]="{'height': height + 'px', 'width': width + 'px', 'max-height': (height + 7) + 'px', 'max-width': (height + 7) + 'px'}"
~~~~~
src/app/shared/charts/donut-chart/donut-chart.component.ts:12:18
12 templateUrl: './donut-chart.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component DonutChartComponent.
src/app/cloud-account/cloud-account-details/aws-cloud-account-details/aws-cloud-account-details.component.html:225:109 - error TS2339: Property 'index' does not exist on type 'AWSCloudAccountDetailsComponent'.
225 <clr-icon *ngIf="(isEdit$ | async)" shape="close" (click)="cloudAccount.tags.splice(index, 1)">
~~~~~
src/app/cloud-account/cloud-account-details/aws-cloud-account-details/aws-cloud-account-details.component.ts:29:18
29 templateUrl: './aws-cloud-account-details.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AWSCloudAccountDetailsComponent.
src/app/cloud-account/cloud-account-details/azure-cloud-account-details/azure-cloud-account-details.component.html:238:87 - error TS2339: Property 'onTagsUpdate' does not exist on type 'AzureCloudAccountDetailsComponent'.
238 <vss-cloud-account-tags-modal *ngIf="addTagModal" [isAdding]="true" (updateTags)="onTagsUpdate($event)"
~~~~~~~~~~~~
src/app/cloud-account/cloud-account-details/azure-cloud-account-details/azure-cloud-account-details.component.ts:29:18
29 templateUrl: './azure-cloud-account-details.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AzureCloudAccountDetailsComponent.
src/app/violations/all-findings/all-findings.component.html:24:57 - error TS2339: Property 'roles' does not exist on type 'AllFindingsComponent'.
24 <a class="alert-action" *ngIf="(roles.isOrgAnalyst$ | async) || (roles.isOrgAdmin$ | async)"
~~~~~
src/app/violations/all-findings/all-findings.component.ts:56:18
56 templateUrl: './all-findings.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AllFindingsComponent.
src/app/violations/all-findings/all-findings.component.html:24:90 - error TS2339: Property 'roles' does not exist on type 'AllFindingsComponent'.
24 <a class="alert-action" *ngIf="(roles.isOrgAnalyst$ | async) || (roles.isOrgAdmin$ | async)"
~~~~~
src/app/violations/all-findings/all-findings.component.ts:56:18
56 templateUrl: './all-findings.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AllFindingsComponent.
src/app/violations/all-findings/all-findings.component.html:57:33 - error TS2339: Property 'roles' does not exist on type 'AllFindingsComponent'.
57 *ngIf="(roles.isOrgAnalyst$ | async) || (roles.isOrgAdmin$ | async)"
~~~~~
src/app/violations/all-findings/all-findings.component.ts:56:18
56 templateUrl: './all-findings.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AllFindingsComponent.
src/app/violations/all-findings/all-findings.component.html:57:66 - error TS2339: Property 'roles' does not exist on type 'AllFindingsComponent'.
57 *ngIf="(roles.isOrgAnalyst$ | async) || (roles.isOrgAdmin$ | async)"
~~~~~
src/app/violations/all-findings/all-findings.component.ts:56:18
56 templateUrl: './all-findings.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AllFindingsComponent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment