Vue.js [Vue warn]:未知的自定义元素:
我目前在一个基于Vuepress的静态网站上工作。我在.md文件中注册Vue组件时出现了一个错误Vue.js [Vue warn]:未知的自定义元素:,vue.js,vuepress,Vue.js,Vuepress,我目前在一个基于Vuepress的静态网站上工作。我在.md文件中注册Vue组件时出现了一个错误 [Vue warn]: Unknown custom element: <v-b86f6654149c6> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <Page>
[Vue warn]: Unknown custom element: <v-b86f6654149c6> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <Page> at lib/default-theme/Page.vue
<Layout> at lib/default-theme/Layout.vue
<Root
我上面提到的自定义组件位于/docs/.vuepress/components中,它们都是具有名称属性集的常规Vue组件。我刚刚遇到了类似的问题。然而,在几个小时的谷歌搜索和重建VuePress后,我试图访问它http://127.0.0.1:8081 而不是http://localhost:8081 -成功了 我假设这是一个缓存问题或类似的问题-即使没有安装服务工作者
<Page>
<Content>
<Page>
<VXXXXXXX>
<Component1>
<Component2>
---
title: a title
description: a description
pageClass: homepage subpage contact
headerText: Contact
blackSubText: some text
submitText: Envoyer
submitImage: /img/icons/green-arrow.png
---
<headerTextComponent/>
<formulaire type="contact" formId="/6db97999-f466-4250-aa47-bd6e96a6b520" :fields="['contactobject', 'message']"/>
<blog/>