Cannot read properties of undefined (reading 'display')
See original GitHub issue🐞 Bug report
What modules are related to this issue?
- aspnetcore-engine
- builders
- common
- express-engine
- hapi-engine
Description
On running npm run dev:ssr
the code is compiled successfully but when i open the link then error occurs which is added in the exception below.
I have imported NoopAnimationsModule in app.server.module and i have also separated the app.module.ts and app.browser.module.ts
🔥 Exception or Error
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR Error: Uncaught (in promise): [object Undefined]
at resolvePromise (/home/haris/Work/TN/website/dist/website/server/main.js:208374:21)
at /home/haris/Work/TN/website/dist/website/server/main.js:208269:11
at /home/haris/Work/TN/website/dist/website/server/main.js:137200:32
at ZoneDelegate.invoke (/home/haris/Work/TN/website/dist/website/server/main.js:207382:160)
at Object.onInvoke (/home/haris/Work/TN/website/dist/website/server/main.js:79008:33)
at ZoneDelegate.invoke (/home/haris/Work/TN/website/dist/website/server/main.js:207382:48)
at Zone.run (/home/haris/Work/TN/website/dist/website/server/main.js:207110:37)
at /home/haris/Work/TN/website/dist/website/server/main.js:208447:28
at ZoneDelegate.invokeTask (/home/haris/Work/TN/website/dist/website/server/main.js:207415:173)
at Object.onInvokeTask (/home/haris/Work/TN/website/dist/website/server/main.js:78995:33) {
rejection: undefined,
promise: ZoneAwarePromise [Promise] {
__zone_symbol__state: 0,
__zone_symbol__value: undefined
},
zone: <ref *1> Zone {
_parent: Zone {
_parent: null,
_name: '<root>',
_properties: {},
_zoneDelegate: [ZoneDelegate]
},
_name: 'angular',
_properties: { isAngularZone: true },
_zoneDelegate: <ref *2> ZoneDelegate {
_taskCounts: [Object],
zone: [Circular *1],
_parentDelegate: [ZoneDelegate],
_forkZS: null,
_forkDlgt: null,
_forkCurrZone: null,
_interceptZS: null,
_interceptDlgt: null,
_interceptCurrZone: null,
_invokeZS: [Object],
_invokeDlgt: [ZoneDelegate],
_invokeCurrZone: [Circular *1],
_handleErrorZS: [Object],
_handleErrorDlgt: [ZoneDelegate],
_handleErrorCurrZone: [Circular *1],
_scheduleTaskZS: [Object],
_scheduleTaskDlgt: [ZoneDelegate],
_scheduleTaskCurrZone: [Circular *1],
_invokeTaskZS: [Object],
_invokeTaskDlgt: [ZoneDelegate],
_invokeTaskCurrZone: [Circular *1],
_cancelTaskZS: [Object],
_cancelTaskDlgt: [ZoneDelegate],
_cancelTaskCurrZone: [Circular *1],
_hasTaskZS: [Object],
_hasTaskDlgt: [ZoneDelegate],
_hasTaskDlgtOwner: [Circular *2],
_hasTaskCurrZone: [Circular *1]
}
},
task: ZoneTask {
_zone: <ref *1> Zone {
_parent: [Zone],
_name: 'angular',
_properties: [Object],
_zoneDelegate: [ZoneDelegate]
},
runCount: 0,
_zoneDelegates: null,
_state: 'notScheduled',
type: 'microTask',
source: 'Promise.then',
data: ZoneAwarePromise [Promise] {
__zone_symbol__state: true,
__zone_symbol__value: undefined
},
scheduleFn: undefined,
cancelFn: undefined,
callback: [Function (anonymous)],
invoke: [Function (anonymous)]
}
}
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR NetworkError
at XMLHttpRequest.send (/home/haris/Work/TN/website/dist/website/server/main.js:205262:19)
at Observable._subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:16380:17)
at Observable._trySubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195988:25)
at Observable.subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195974:22)
at scheduleTask (/home/haris/Work/TN/website/dist/website/server/main.js:94831:32)
at Observable._subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:94869:13)
at Observable._trySubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195988:25)
at Observable.subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195974:22)
at innerSubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:196991:23)
at MergeMapSubscriber._innerSub (/home/haris/Work/TN/website/dist/website/server/main.js:198335:98)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR NetworkError
at XMLHttpRequest.send (/home/haris/Work/TN/website/dist/website/server/main.js:205262:19)
at Observable._subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:16380:17)
at Observable._trySubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195988:25)
at Observable.subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195974:22)
at scheduleTask (/home/haris/Work/TN/website/dist/website/server/main.js:94831:32)
at Observable._subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:94869:13)
at Observable._trySubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195988:25)
at Observable.subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195974:22)
at innerSubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:196991:23)
at MergeMapSubscriber._innerSub (/home/haris/Work/TN/website/dist/website/server/main.js:198335:98)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Invalid event target
at setupSubscription (/home/haris/Work/TN/website/dist/website/server/main.js:197551:15)
at Observable._subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:197525:9)
at Observable._trySubscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195988:25)
at Observable.subscribe (/home/haris/Work/TN/website/dist/website/server/main.js:195974:22)
at HeaderComponent.ngOnInit (/home/haris/Work/TN/website/dist/website/server/main.js:211931:99)
at callHook (/home/haris/Work/TN/website/dist/website/server/main.js:52862:22)
at callHooks (/home/haris/Work/TN/website/dist/website/server/main.js:52831:17)
at executeInitAndCheckHooks (/home/haris/Work/TN/website/dist/website/server/main.js:52782:9)
at selectIndexInternal (/home/haris/Work/TN/website/dist/website/server/main.js:58783:17)
at Module.ɵɵadvance (/home/haris/Work/TN/website/dist/website/server/main.js:58766:5)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
ERROR TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at /home/haris/Work/TN/website/dist/website/server/main.js:91846:29
ERROR TypeError: Cannot read properties of undefined (reading 'length')
at /home/haris/Work/TN/website/dist/website/server/main.js:14561:32
at Array.forEach (<anonymous>)
at HttpHeaders.lazyInit (/home/haris/Work/TN/website/dist/website/server/main.js:14555:38)
at HttpHeaders.init (/home/haris/Work/TN/website/dist/website/server/main.js:14659:22)
at HttpHeaders.keys (/home/haris/Work/TN/website/dist/website/server/main.js:14598:14)
at HttpBatchLinkHandler.createBatchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138956:29)
at OperationBatcher.HttpBatchLinkHandler.batchKey (/home/haris/Work/TN/website/dist/website/server/main.js:138907:29)
at OperationBatcher.enqueueRequest (/home/haris/Work/TN/website/dist/website/server/main.js:106957:24)
at BatchLink._this.request (/home/haris/Work/TN/website/dist/website/server/main.js:107070:73)
at HttpBatchLinkHandler.request (/home/haris/Work/TN/website/dist/website/server/main.js:138965:29)
TypeError: Cannot read properties of undefined (reading 'display')
at cloakElement (/home/haris/Work/TN/website/dist/website/server/main.js:4985:36)
at /home/haris/Work/TN/website/dist/website/server/main.js:4991:48
at Set.forEach (<anonymous>)
at cloakAndComputeStyles (/home/haris/Work/TN/website/dist/website/server/main.js:4991:14)
at /home/haris/Work/TN/website/dist/website/server/main.js:4560:13
at Map.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (/home/haris/Work/TN/website/dist/website/server/main.js:4559:22)
at TransitionAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:4333:32)
at InjectableAnimationEngine.flush (/home/haris/Work/TN/website/dist/website/server/main.js:5196:32)
at InjectableAnimationEngine.ngOnDestroy (/home/haris/Work/TN/website/dist/website/server/main.js:92016:14)
🌍 Environment
Angular CLI: 12.2.4
Node: 16.9.0 (Unsupported)
Package Manager: npm 7.22.0
OS: linux x64
Angular: 12.2.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1202.4
@angular-devkit/build-angular 12.2.4
@angular-devkit/core 12.2.4
@angular-devkit/schematics 12.2.4
@nguniversal/builders 12.1.0
@nguniversal/express-engine 12.1.0
@schematics/angular 11.2.14
rxjs 6.6.7
typescript 4.2.4
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Cannot read properties of undefined (reading 'display')
getElementsByClassName returns array of elements. this is my solution: function toggleText(){ var elms = document.
Read more >Cannot read properties of undefined (reading 'display')
I have not worked with the DOM in a while, and I decided to do a little refresher project. Needless to say, it...
Read more >Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >[Solved] Cannot read Properties of Undefined in JavaScript
The 'Cannot read properties of undefined' error occurs when you try to access a property or a method on a variable that stores...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue on my project. We are using ngx-charts-pie-chart. In my case the problem is when there is an attempt to animate
<svg>
elements. We tried to switch off animations with NoopAnimationsModule and with passing[animations]="false"
to the ngx-charts-pie-chart but both haven’t worked. Angular animation module is trying to get styles of the<svg>
elements like<g>
. And even switching off animations doesn’t stop animation module from callcloakAndComputeStyles
towards<g>
elements which are undefined in SSR. Still trying to find the workaround. I’ll post an answer here if we will find it earlier then Angular team will fix it.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.