Topic: mdb-alert error when initialize

ozgehan premium asked 3 years ago


Hi, I am using mdb-alert to show error and success messages to user. I guess there are new properties came with 6.0.0 version. now when I use mdb-alert it gives these errors.

[Vue warn]: Invalid prop: type check failed for prop "enterActiveClass". Expected String with value "animated,", got Array 

[Vue warn]: Invalid prop: type check failed for prop "leaveActiveClass". Expected String with value "animated,", got Array

my only code is

<mdb-alert  color="primary"></mdb-alert>

P.S : in api documentation there are various character errors such as in enterAnimation => enterAnimatrion or dismiss => dissmiss etc.

Thanks,


Magdalena Dembna staff answered 3 years ago


We have found the bug which caused it. The issue will be fixed in MDB Vue 6.0.1 (release: upcoming Monday). Kind regards, Magdalena


ozgehan premium commented 3 years ago

Hi, Are there any changes about release date of 6.0.1 version ?


ozgehan premium answered 3 years ago


Unfortunately it didn't work out for me. I added notify in main.js but nothing has changed


Magdalena Dembna staff answered 3 years ago


Import of the Notify in your main.js file is slightly different:

import Notify from 'mdbvue/lib/components/Notify';
Vue.use(Notify);

or

  import { Notify } from 'mdbvue';
  Vue.use(Notify);

Thank you for drawing our attention to those typos - we will sort it out as soon as possible. Let me know if this change in main.js solves your problem. 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

  • User: Premium
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: 6.0.0
  • Device: computer
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No