akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

Tree Grid does not work #86

Open bagerman opened 3 years ago

bagerman commented 3 years ago

The following exception is thrown while trying to integrate TreeGrid component by following example provided in documentation for the Data Source use This is html code at line referenced below in stack : at AllAnalyticsComponent_Template (all-analytics.component.html:5) <table [nbTreeGrid]="source"> Exception stack

TypeError: Cannot read property 'nativeElement' of null
    at new CdkTable (table.js:1265)
    at new NbTable (index.js:18425)
    at new NbTreeGridComponent (index.js:25275)
    at NodeInjectorFactory.NbTreeGridComponent_Factory [as factory] (index.js:25416)
    at getNodeInjectable (core.js:4029)
    at instantiateAllDirectives (core.js:7963)
    at createDirectivesInstances (core.js:7329)
    at Module.ɵɵelementStart (core.js:13901)
    at AllAnalyticsComponent_Template (all-analytics.component.html:5)
    at executeTemplate (core.js:7302)
    at resolvePromise (zone-evergreen.js:798)
    at resolvePromise (zone-evergreen.js:750)
    at zone-evergreen.js:860
    at ZoneDelegate.invokeTask (zone-evergreen.js:399)
    at Object.onInvokeTask (core.js:27424)
    at ZoneDelegate.invokeTask (zone-evergreen.js:398)
    at Zone.runTask (zone-evergreen.js:167)
    at drainMicroTaskQueue (zone-evergreen.js:569)
    at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:484)
    at invokeTask (zone-evergreen.js:1621)