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

ng-flash-messages not working with aot prod build #3

Open
navdeep1206 opened this issue Apr 10, 2019 · 6 comments
Open

ng-flash-messages not working with aot prod build #3

navdeep1206 opened this issue Apr 10, 2019 · 6 comments
Labels

Comments

@navdeep1206
Copy link

navdeep1206 commented Apr 10, 2019

HI,
i have got issue with ng-flash-messages if i go for --prod build. Getting error as r is not a constructor.

ERROR TypeError: r is not a constructor
at Jm (main.5d2699bc6087e3578f19.js:1)
at Km (main.5d2699bc6087e3578f19.js:1)
at Ev (main.5d2699bc6087e3578f19.js:1)
at Object.Sv [as createEmbeddedView] (main.5d2699bc6087e3578f19.js:1)
at e.createEmbeddedView (main.5d2699bc6087e3578f19.js:1)
at t.createEmbeddedView (main.5d2699bc6087e3578f19.js:1)
at t._updateView (main.5d2699bc6087e3578f19.js:1)
at t.set [as ngIf] (main.5d2699bc6087e3578f19.js:1)
at iv (main.5d2699bc6087e3578f19.js:1)
at main.5d2699bc6087e3578f19.js:1

removing ng-flash-messages solves the issue.

Any help on this will be highly appreciated.

@question-tagger
Copy link

Hey! Thanks for the question someone will answer you soon.

@ameerthehacker
Copy link
Owner

@navdeep1206 what version of Angular are you using?

@sureshDurai123
Copy link

Hi
i am also facing the same issue,Please help me
My angular Version is 7.1

Thanks

@ameerthehacker
Copy link
Owner

@sureshDurai123 this library was designed and developed during the initial days of Angular 2 so it might break on the latest version of Angular. I'm planning to upgrade this library to the latest version of Angular soon and I really appreciate your patience

@sureshDurai123
Copy link

Sure ,Thanks @ameerthehacker

@PeterSawyer
Copy link

@ameerthehacker I am keen too, spend ages trying to figure why my new migration to Angular 8 was failing at runtime with production builds, then eventually after tuning on AOT in dev I found the source of the error. Up vote from me to bring this up to new standards.

Cheers

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

No branches or pull requests

4 participants