Topic: Error: NG0300 with dropdowns component

deltaxmvp priority asked 3 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.

deltaxmvp priority commented 3 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 3 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.

deltaxmvp 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.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • 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