Vuesax: Unknown custom element: <vs-button>

Created on 20 Jul 2018  路  3Comments  路  Source: lusaxweb/vuesax

After install Vuesax via npm install version 3.1.45, we have this error message on console:

_"Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option."_

When open dialog:
Alert Primary

openAlert(color){
this.colorAlert = color || this.getColorRandom()
this.$vs.dialog({
color:this.colorAlert,
title: Dialog - ${this.colorAlert},
text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
accept:this.acceptAlert
})
},
acceptAlert(){
this.$vs.notify({
color:this.colorAlert,
title:'Accept Selected',
text:'Lorem ipsum dolor sit amet, consectetur'
})
},
getColorRandom(){
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
return rgb(${getRandomInt(0,255)},${getRandomInt(0,255)},${getRandomInt(0,255)})
}

For this.$vs.dialog doesn't work:
dialogvsbutton

But if change for this.$vs.confirm or this.$vs.alert buttons works fine

alert
confirm

on this.$vs.dialog buttons are broken.

Thanks!!!

bug good first issue help wanted

Most helpful comment

@jupox working fine here, you have problem yet?

example:
https://codepen.io/anon/pen/MqvLYR

All 3 comments

You could pass me a codepen or a repo to duplicate the error and fix it thank you very much

@jupox working fine here, you have problem yet?

example:
https://codepen.io/anon/pen/MqvLYR

Any way to fix this? I'm having the same problem

Was this page helpful?
0 / 5 - 0 ratings