Error: NG0300 with dropdowns component


Topic: Error: NG0300 with dropdowns component

explora pro premium priority asked 4 years ago

Hi, i have a problem with Dropdowns component. I just copied the code from the first example but, when i run my application, the browser console gives me this:

Error: Uncaught (in promise): Error: NG0300: Multiple components match node with tagname div.


explora pro premium priority commented 4 years ago

I did a mistake when i imported MDBBootstrapModulesPro without ".forRoot()". Reading the B4 version of documentation (here) i understood that. i suggest to add a similar page to the angular B5 version of doc.


Arkadiusz Idzikowski staff commented 4 years ago

@explora Do you use MDB Angular 4 or MDB Angular 5 library?

In MDB Angular 5 forRoot should not be needed and the module name is MdbModule.


explora pro premium priority commented 3 years ago

Ok Thanks, so for each component i have to import the relative module, that's right?


Arkadiusz Idzikowski staff commented 3 years ago

@explora If you use v1.0.0-beta5 or lower, importing just MdbModule should be enough, unless you want to import only individual modules to reduce your application bundle size.


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: Free
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0-beta4
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: No