Topic: Argument of type 'ToastContainerDirective' is not assignable... pro asked 6 years ago

Hi, I am receiving this error when I upgrade to 4.2 from version 4.1: Argument of type 'ToastContainerDirective' is not assignable to parameter of type 'ToastContainerDirective'. Types have separate declarations of a private property 'el'.   Am I missing some config? Else when will this be fixed?

Adrian Sawicki free answered 6 years ago

Sorry for so fast releases which make difference in syntax etc. We are currently working on a release which will sum it up and generalize tags names. I guess it might be released even today.

Edyta Dabrowska free answered 6 years ago

Do I understand you correctly, that by upgrade you mean that you just did 'npm i'? This only works for the free version. So, please download the newest PRO package from your profile and then change typescript and scss folder to the newest ones. Let me know how it is now. pro commented 6 years ago

That's exactly what I did. I downloaded the PRO package from MDB account profile. So when I added the typescript folder to the root of the app, that was the error I received when I tried to build the app.

Edyta Dabrowska free answered 6 years ago

Hi, import path should be like: import { ToastrService } from ''your-path-to'/typescripts/angular-bootstrap-md/pro/index'; And constructor also: constructor(private toastrService: ToastrService) {} Please check if you are also using Toastr instead of Toast. And let me know if this helps. pro commented 6 years ago

I am not getting this error because I am not importing it. I am not using the ToastService in my app. I upgraded and when I build my Angular app that's the error I am getting. So either, there is some additional step in configuration for version 4.2 or MDB Angular team missed something by deploying bad code. Please advise!

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No