Topic: ToastrModule is already loaded error after upgrade
Hi Support, Before the upgrade to 4.2.0 pro, my application was working with version 4.1.0 And now I am getting an error of ToastrModule is already loaded. It should only be imported in your application's main module. But my application does not use this module.
We have a clear feedback about it so we will prioritize it.
Hi, it looks like you have "ToastModule" imported twice, so it's necessary to find duplicated declaration and remove it.
Hi, To get my app to work again, I had to comment out a few lines in the src\app\angular-bootstrap-md\pro\index.js file and they are line 26, 46 and 73. All the commented line is related to ToastrModule. As I said before, I do not use ToastrModule in my app and it was working perfectly in version mdb-angular-pro 4.1.0 Just to let you know in my app module I import the MDBBootstrapModulePro like this: MDBBootstrapModulePro.forRoot() and in my lazy loaded module, I also import MDBBootstrapModulePro but without .forRoot() I believe the new version 4.2.0 pro changes which will cause this error when importing MDBBootstrapModulePro in the lazy loaded module but this was working fine in version mdb-angular-pro 4.1.0 Can you please investigate? Many thanks
Ok, could you send me your package? It will be much easier to investigate what could go wrong. Here's my e-mail address: firstname.lastname@example.org.
Has this been resolved, I'm having the same error with lazyloaded modules...
i got the same problem with lazy loaded modules. i'm also not using toast module. is it wrong to import mdbootstrap in app.module and several other modules which get lazy loaded?
i was able to fix my problem through a shared module. but still i needed to get rid of ToastModule references in various mdbootstrap index files. everything else is working. please fix!
Hi Support, I am using mdb-angular-pro-4.3.5 but this problem still exists.
Hello, Will this problem be solved soon, without it mdb angular is unusable for me. Thank you
Dear all, please find a solution within this post thread: https://mdbootstrap.com/support/bug-with-the-lazy-loading/