Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js [Vue warn]:未知的自定义元素:_Vue.js_Vuepress - Fatal编程技术网

Vue.js [Vue warn]:未知的自定义元素:

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>

我目前在一个基于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> 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/>