Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng2-tree is having issue with Angular 11 production build #349

Open
ambujkhanna opened this issue Jul 5, 2021 · 0 comments
Open

ng2-tree is having issue with Angular 11 production build #349

ambujkhanna opened this issue Jul 5, 2021 · 0 comments

Comments

@ambujkhanna
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant