Closed PDavid closed 4 years ago
@PDavid this should be solved here https://github.com/500tech/angular-tree-component/pull/771
As workaround you can follow https://github.com/angular/angular/issues/33685#issuecomment-557131112
Thanks @elvisbegovic!
Hi,
First of all thanks for this great library! I use your tree component in my application and it is really-really nice! 👍
The error:
When I try to use the tree component (Getting Started from docs: https://angular2-tree.readme.io/docs/) with Angular 9 rc3 version and run
ng serve
, the tree component is not displayed in the browser and the browser console contains the following error:Reproduce
Unfortunately I was not able to reproduce the issue with stackblitz, but with my local Angular CLI generated projects this happens always. (I generated a new project just for this and upgraded it to Angular 9 rc3) The issue is also reproducible when I download this stackblitz project: https://stackblitz.com/edit/angular-ejnnyz
Additional Info
@NgModule({ imports: [ BrowserModule, TreeModule.forRoot() ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] }) export class AppModule { }
import { Component } from '@angular/core';
@Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: [ './app.component.css' ] }) export class AppComponent { nodes = [ {name: 'Root1', children:[ {name: 'Child1'} ]} ]; options = {} }
Tree
<tree-root [nodes]="nodes" [options]="options">
$ ng --version
/ △ \ | ' \ /
| | | | |/ _
| '| | | | | | | / _ | | | | (| | || | | (| | | | || |_ | | // __| ||_, |_,||_,|| __|__|| |/Angular CLI: 9.0.0-rc.3 Node: 12.13.0 OS: win32 x64 Angular: 9.0.0-rc.3 ... animations, cli, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... router
Package Version
@angular-devkit/architect 0.900.0-rc.3 @angular-devkit/build-angular 0.900.0-rc.3 @angular-devkit/build-optimizer 0.900.0-rc.3 @angular-devkit/build-webpack 0.900.0-rc.3 @angular-devkit/core 9.0.0-rc.3 @angular-devkit/schematics 9.0.0-rc.3 @ngtools/webpack 9.0.0-rc.3 @schematics/angular 9.0.0-rc.3 @schematics/update 0.900.0-rc.3 rxjs 6.5.3 typescript 3.6.4 webpack 4.41.2