Я тестирую угловой 7 компонент, содержащий новый CdkVirtualScrollViewport
компонент, и получаю странную ошибку.
Failed: Cannot read property 'execute' of undefined
TypeError: Cannot read property 'execute' of undefined
at AnimationFrameScheduler.Object.<anonymous>.AnimationFrameScheduler.flush (node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts:17:26)
at node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts:28:23
at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invokeTask (node_modules/zone.js/dist/zone.js:421:31)
at AsyncTestZoneSpec.Object.<anonymous>.AsyncTestZoneSpec.onInvokeTask (node_modules/zone.js/dist/async-test.js:90:25)
at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvokeTask (node_modules/zone.js/dist/proxy.js:156:39)
at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invokeTask (node_modules/zone.js/dist/zone.js:420:36)
at Zone.Object.<anonymous>.Zone.runTask (node_modules/zone.js/dist/zone.js:188:47)
at Object.<anonymous>.ZoneTask.invokeTask (node_modules/zone.js/dist/zone.js:496:34)
at ZoneTask.invoke (node_modules/zone.js/dist/zone.js:485:48)
at timer (node_modules/zone.js/dist/zone.js:2054:29)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
Шаблон моих компонентов
<cdk-virtual-scroll-viewport itemSize="48" class="scroll-container">
<ng-container *cdkVirtualFor="let item of data.listItems">
<some-component> {{ item }}</some-component>
</ng-container>
</cdk-virtual-scroll-viewport>