scttcper / ngx-toastr

🍞 Angular Toastr
https://ngx-toastr.vercel.app
MIT License
2.52k stars 358 forks source link

NGX Toastr TEXT not showing on build #710

Closed nickykapur closed 5 years ago

nickykapur commented 5 years ago

I have been trying to get my application ready for production, and realized my toastrs appearing but not showing the messages in it.

scttcper commented 5 years ago

Is it a css issue or something else?

nickykapur commented 5 years ago

I am not completely sure. Whenever i do the ng serve option, it works perfectly and nice. Currently I am trying to set the toastr variables as public, as reading on some pages, hopefully that solves it. Because, when trying to build the project and running on real environment the messages of the toastrs are not appearing.

pixeldepth commented 5 years ago

I have the same problem, but for me text is missing also for ng serve. The problem isn't css, because content of notify is emtpy, for example:

<div id="toast-container" class="toast-top-right toast-container">
  <div class="ng-tns-c19-6 ng-star-inserted ng-trigger ng-trigger-flyInOut ngx-toastr toast-success" style="opacity: 1;">
    <!--container-->
    <!--container-->
    <!--container-->
    <!--container-->
    <!--container-->
  </div>
</div>

Project uses Angular 9.0.0-next.6

raysuelzer commented 5 years ago

Sounds like an AOT issue

scttcper commented 5 years ago

need some way to reproduce

alainbelez commented 5 years ago

I have the same problem, but for me text is missing also for ng serve. The problem isn't css, because content of notify is emtpy, for example:

<div id="toast-container" class="toast-top-right toast-container">
  <div class="ng-tns-c19-6 ng-star-inserted ng-trigger ng-trigger-flyInOut ngx-toastr toast-success" style="opacity: 1;">
    <!--container-->
    <!--container-->
    <!--container-->
    <!--container-->
    <!--container-->
  </div>
</div>

Project uses Angular 9.0.0-next.6

i also have this output using angular 8.3.8 with ivy enabled

EDIT: disabled ivy and aot and it seems to work.