Topic: Console Errors/Warnings from MDBVue Nav components since update

londoh pro asked 4 years ago


Expected behavior Nothing changed in code so should be no console errors

Actual behavior Nothing changed in my code but I have lots of errors in console Resources (screenshots, code snippets etc.)

I'm running mdbvue 6.2 under vue 2.6.11 I ran update sometime in the past week or so, and since then I have lots of errors showing up in console comin from MDBVue Nav components:

[Vue warn]: The .native modifier for v-on is only valid on components but it was used on <li>.

found in

---> <MdbDropdown>
       <MdbNavbarNav>
         <MdbNavbar>
           <MdbTree> at resources/js/components/nav/MdbTree.vue
             <Root>

nothing changed in my code in that time to cause this, and I have no .native modifier

I found this relevant issue reported on vuejs github: https://github.com/vuejs/vue/issues/10939

and a similar report on vuetifyjs: https://github.com/vuetifyjs/vuetify/issues/9999

as reported on vuejs issue I see these as errors not warnings.

Is this something mdb team needs to address - or is it a vue issue?

Is there a workaround?

Happy New Year!

l.


Magdalena Dembna staff answered 4 years ago


MDB Vue 6.2.0 was built on Vue 2.6.10 - since Vue 2.6.11 additional console errors are shown (because of .native usage on some of our elements). We have bumped Vue version and fixed those issues - the next release (20.01.2010) will contain all changes necessary for Vue 2.6.11. Kind regards, Magdalena



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: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.2.0
  • Device: any
  • Browser: all
  • OS: n/a
  • Provided sample code: No
  • Provided link: Yes