Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Unknown custom element: <mdb-navbar-brand>

frederickvalone free asked 6 years ago


I am seeing this in the chrome console [Vue warn]: Unknown custom element: <mdb-navbar-brand> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
It still works correctly but I don't understand why the issue exists. The code below is where I register the component. This did not happen before upgrading to pro.
 
import {
    mdbNavbar,
    NavbarNav,
    NavbarCollapse,
    mdbNavbarBrand,
    Modal,
    ModalHeader,
    ModalTitle,
    ModalBody,
    ModalFooter,
    Column,
    Badge,
    Row,
    Fa,
    Btn,
} from 'mdbvue'

export default {
    name: 'QCHeader',
    components: {
        mdbNavbar,
        NavbarNav,
        NavbarCollapse,
        mdbNavbarBrand,
        Modal,
        ModalHeader,
        ModalTitle,
        ModalBody,
        ModalFooter,
        Column,
        Badge,
        Row,
        Fa,
        Btn,
        QCLogo,
        LoginForm,
        WelcomeLogout,
        NavLinks,
    },

Mikołaj Smoleński staff answered 6 years ago


Hi there,

I just checked our package and it seems to be ok. Could You please try to import the component without prefix (NavbarBrand)? 

Best regards



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 4.8.2
  • Device: pc
  • Browser: chrome
  • OS: redhat linux
  • Provided sample code: No
  • Provided link: No