Topic: ToastService not working

jimsgroup pro asked 4 years ago

After reading this post


I see you have implemented the suggestion. For me, this now stops my app from compiling!! I'm getting the error:

ERROR in src/app/app.component.ts(18,10): error TS2305: Module '"D:/Workspace/node_modules/ng-mdb-pro/pro/alerts/index"' has no exported member 'ToastService'.

How can I get the toast to work?? Your documentation on it isn't very good. An I don't see how the above suggestion has fixed anything.

FYI, I'm not lazy loading modules.


Damian Gemza staff answered 4 years ago

Dear jimsgroup, You have right, there was a problem with Alerts. I've fixed this. Please delete your's node_modules and npm install one more time. Best Regards, Damian

Damian Gemza staff answered 4 years ago

Hello jimsgroup, Did you imported ToastModule and BrowserAnimationModule in your's app.module.ts and ToastService in your's app.component.ts? I've tested this right now, and for me, everything is fine. Best Regards, Damian

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

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