Identifying the Issue in the Code
import { Injectable } from '@angular/core';
import { AccountingTransactionsStoreService } from './accounting-transactions-store.service';
import { GeneralLedgerAccountsStoreService } from './general-ledger-accounts-store.service';
import { distinctUntilChanged, map, combineLatest } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class AccountingReportsStoreService {
constructor(
private accountingTransactionsStore: AccountingTransactionsStoreService,
private generalLedgerAccountsStore: GeneralLedgerAccountsStoreService)
{}
readonly generalLedgerAccountsTransaction$
= combineLatest(
this.accountingTransactionsStore.selectedPeriodAccountingTransactionsFlate$,
this.generalLedgerAccountsStore.selectedOrganizationGeneralLedgerAccountsTree$)
.pipe(distinctUntilChanged())
.pipe(
map(([transactionsFlat, accountsTree]) => {
if (transactionsFlat && accountsTree)
return [];
else return [];
})
)
}
The Exception Encountered
An error stating that 'Property 'pipe' does not exist on type ' OperatorFunction < unknown , [ unknown , AccountingTransactionFlatInterface [ ] , GeneralLedgerAccountInterface [ ] ] > ' has been encountered.