Topic: Runtime Error with MDB Pro 7.5.0

angularspa free asked 5 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.


Arkadiusz Idzikowski staff answered 5 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.


angularspa free answered 5 years ago


problem coming from sticky-header.module.ts

import {BrowserAnimationsModule} from "@angular/platform-browser/animations";


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: 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