Topic: Argument of type 'ToastContainerDirective' is not assignable...
alobban@afnww.com pro asked 7 years ago
Adrian Sawicki free answered 7 years ago
Hello,
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 7 years ago
alobban@afnww.com pro commented 7 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 7 years ago
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.
alobban@afnww.com pro commented 7 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!FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No