首页 前端知识 vue报错If this is a native custom element

vue报错If this is a native custom element

2024-05-22 09:05:01 前端知识 前端哥 423 795 我要收藏

原始错误

If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

在这里插入图片描述

解决方法(一种)

import Hello from './pages/hello.vue'
export default {
    data(){
        return{

        }
    },
    methods:{

    },
    component:{
        Hello
    }
}

component忘了加s

import Hello from './pages/hello.vue'
export default {
    data(){
        return{

        }
    },
    methods:{

    },
    components:{
        Hello
    }
}
转载请注明出处或者链接地址:https://www.qianduange.cn//article/9093.html
标签
评论
发布的文章

JQuery中的load()、$

2024-05-10 08:05:15

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!