Topic: Runtime Error with MDB Pro 7.5.0
angularspa asked 6 years ago
Upgrade MDBPro for Angular from 7.4.2 to 7.5.0 Should work with current code
Throw runtime error on console ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
angularspa answered 6 years ago
problem coming from sticky-header.module.ts
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
Arkadiusz Idzikowski staff answered 6 years ago
We are already aware of this problem and it will be fixed in next version. As a workaround you can import only the modules you need to your lazy loaded module, instead of whole MDBBootstrapModule.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.0
- Device: Desktop
- Browser: Chrome
- OS: Windows 7
- Provided sample code: No
- Provided link: No