Vue prompt Unknown custom element

main js
clipboard.png
html
clipboard.png

clipboard.png


clipboard.png

Jun.21,2022

makes it very clear that you have not registered the < my-alert > component. Do you have a js that registers < my-alert > components?


new Vue ({
el:'- sharpapp0',
data: {
...
},
components: {
my-alert: my-alert
},
methods: {

)

},
computed: {

},
ready: function () {

}

});


according to the prompt, the < my-alert > component is not registered, and the registered js does not execute or at the wrong time .


register the component first, and then go to vm = new Vue ({). Tmd can also find out and convince myself, and thank @ Starsky for the hint

.
Menu