old question of lazy loading in Angular


Topic: old question of lazy loading in Angular

rtchrisdev pro asked 2 years ago

Expected behavior The lazing loaded route works without error, and the MDBbootstrapModulePro loads without fail. I have tried many example of Lazy Loading to no avail. There was a link from MDB in github of a working example, but it is no active now.

Actual behavior

Either I get the error below, or MDBBootstrap does not load , resulting in the html not having any MDB styling.

Resources (screenshots, code snippets etc.)

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. 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 2 years ago

There was a problem with StickyHeaderModule. It was resolved in version 7.5.1.


Please insert min. 20 characters.