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.
Dear,
Recently we have released few small fixes to make use of npm for both free and pro version. We didn't do any code change, though. Once we will fix it we will make a proper note in our changelog.
My apologies for your inconvenience.
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!
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?
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