Error when implementing MDB with Angular 7 / Ionic 4


Topic: Error when implementing MDB with Angular 7 / Ionic 4

bfiering pro premium asked 6 years ago

I read in this Forum I should not include the MDB Import in the App component but I read that I should place the import in 'another' Module. As soon as i try this (I used my shared component, but also tried others), I get this message in my console.

core.js:15724 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.

Based on this error i changed also the import of the common module, but this has no effect. I hope you can lead me in the right direction to get MDB working in Angular with Ionic 4. I would like to buy the premium version but if the free version gives already problems in combination with Ionic 4 than this has no use.

Best regards,

Bob


Arkadiusz Idzikowski staff answered 6 years ago

This error should no longer occur in version 7.5.1.


bfiering pro premium answered 6 years ago

Hi Arkadiusz,

Tried it and it works. Thanks for the fast reply.


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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 7.5.0
  • Device: Mac
  • Browser: Chrome
  • OS: 10.14.4
  • Provided sample code: No
  • Provided link: No