Topic: ToastService not working

jimsgroup pro asked 6 years ago


After reading this post

https://mdbootstrap.com/support/error-uncaught-in-promise-error-toastmodule-is-already-loaded-it-should-only-be-imported-in-your-applications-main-module/

 

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 6 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 6 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.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

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