ng2-tree icon indicating copy to clipboard operation
ng2-tree copied to clipboard

ng2-tree is having issue with Angular 11 production build

Open ambujkhanna opened this issue 2 years ago • 0 comments

I am using latest version of ng2-tree library but it contains issues with Angular 11.

You can replicate by using executing ng serve --prod or create a production build.

It throws below warning and errors: Entry point 'ng2-tree' contains deep imports into 'C:/client/node_modules/rxjs/Observable', 'C:/client/node_modules/uuid/v4', 'C:/client/node_modules/rxjs/Subject', 'C:/client/node_modules/rxjs/add/operator/filter', 'C:/client/node_modules/rxjs/add/observable/of', 'C:/client/node_modules/rxjs/add/operator/merge'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

main-es2015.1651b1f291dcfcfbbb29.js:1 ERROR TypeError: i.Subject is not a constructor at new e (main-es2015.1651b1f291dcfcfbbb29.js:1) at Object.e.ɵfac [as factory] (main-es2015.1651b1f291dcfcfbbb29.js:1) at bs.hydrate (main-es2015.1651b1f291dcfcfbbb29.js:1) at bs.get (main-es2015.1651b1f291dcfcfbbb29.js:1) at Ym.get (main-es2015.1651b1f291dcfcfbbb29.js:1) at Object.get (main-es2015.1651b1f291dcfcfbbb29.js:1) at un (main-es2015.1651b1f291dcfcfbbb29.js:1) at dn (main-es2015.1651b1f291dcfcfbbb29.js:1) at hc (main-es2015.1651b1f291dcfcfbbb29.js:1) at Module.ui (main-es2015.1651b1f291dcfcfbbb29.js:1)

ambujkhanna avatar Jul 05 '21 05:07 ambujkhanna