Topic: calt make mdb-card work

leanpilar pro asked 5 years ago


ERROR in: 'mdb-card' is not a known element the component is not lazy loading and on the same module, I have the mdb-navbar and mdb-slide... in the same component other mdb components that I tried works too but the card not

Damian Gemza staff answered 5 years ago


Guys, Could you please specify, if you're importing only CardsFreeModule or the whole MDB Pro module in your app.module.ts? It's a know bug for us, that mdb-card is not a known element (only when you're importing CardsFreeModule instead of importing the whole MDB module). This problem will be fixed with the next release of MDB Angular. As a workaround, I can suggest you, to use the main MDB Pro module called "MDBBootstrapModulesPro". Best Regards, Damian

leanpilar pro commented 5 years ago

I try both ways unsuccessfully... for this project, I started using the main module... if it is a known bug, I will wait for the fix...

Damian Gemza staff commented 5 years ago

Dear leanpilar, mdb-card components are available only in the latest version of MDB Angular - 6.2.1. Please update your MDB version from 6.2.0 to 6.2.1, and you'll be able to use cards components. More information about this changes you'll find in our Changelog: https://mdbootstrap.com/angular/changelog/ Best Regards, Damian

Gaurav Garg pro answered 5 years ago


I am also facing the same issue 'mdb-card' is not a known element: 1. If 'mdb-card' is an Angular component, then verify that it is part of this module. 2. If 'mdb-card' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

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: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags