Vuepress: Unknown custom element: <v-xxxxxxx>

Created on 20 Jan 2020  路  9Comments  路  Source: vuejs/vuepress




  • [x] I confirm that this is an issue rather than a question.




Bug report

Steps to reproduce

.vuepress/theme/Layout.vue

<template>
  <div>
    <router-link to="/a">to a</router-link>
    <router-link to="/b">to b</router-link>
    <Content></Content>
  </div>
</template>

./a.md

# a

./b.md

# a

What is expected?

correct render

What is actually happening?

The first page I went to can render correctly, when I click link,The following error occurred

image

Other relevant information

  • vuepress version: 1.2.0
  • node version: 12.7.0

Most helpful comment

I cannot reproduce this issue without opening vue-devtools.

So this is an issue that comes from vue-devtools: https://github.com/vuejs/vue-devtools/issues/944

All 9 comments

杩欎釜闂鎴戜篃閬囧埌浜嗭紝鐪嬪埌涔嬪墠淇杩囪繖涓棶棰橈紝浣嗘槸涓轰粈涔坴1.2.0杩樻湁杩欎釜闂鍛紵

I met this too, it seems that commit 2a5980 had solved this issue. Maybe we can figure out.

I've been having this issue and here are the steps to reproduce it in Chrome.

Tested with

VuePress 1.2.0
Vue.js devtools 5.3.3

Reproduction Steps

  1. Run the project in dev mode.
  2. Open it in browser in a fresh tab.
  3. Open Chrome dev tools but only go to Console tab.
  4. Navigate between routes /route-a and route- b. Everything works well, no errors.
  5. Open Vue tab in Chrome dev tools to activate Vue.js devtools then go back to Console tab.
  6. Now navigate to /route-c (i.e. any route you haven't yet visited) and you get the error.

Hope this helps anyone out there familiar with the codebase to identify the problem.

I've been having this issue and here are the steps to reproduce it in Chrome.

Tested with

VuePress 1.2.0
Vue.js devtools 5.3.3

Reproduction Steps

  1. Run the project in dev mode.
  2. Open it in browser in a fresh tab.
  3. Open Chrome dev tools but only go to Console tab.
  4. Navigate between routes /route-a and route- b. Everything works well, no errors.
  5. Open Vue tab in Chrome dev tools to activate Vue.js devtools then go back to Console tab.
  6. Now navigate to /route-c (i.e. any route you haven't yet visited) and you get the error.

Hope this helps anyone out there familiar with the codebase to identify the problem.

I am able to reproduce it, not surprice to find the official are keeping silence as they allways did.

I have also have this problem.

I don't experience the problem without following the Chrome repro steps, so, perhaps the issue relates to Vue devtools? Or the interaction between Vuepress and devtools?

@acmoles vue-devtools has some problems with dynamic components https://github.com/vuejs/vue-devtools/issues/943 . Not sure if it's fixed

I cannot reproduce this issue without opening vue-devtools.

So this is an issue that comes from vue-devtools: https://github.com/vuejs/vue-devtools/issues/944

Closing this as this has been filed in https://github.com/vuejs/vue-devtools/issues/944.

Anyone else who encounter this problem, please check if it's related to your vue-devtools first.

Get the same issue when trying to inheritance the default theme. This workaround works for me https://github.com/vuejs/vuepress/issues/1173#issuecomment-470534176

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AMontagu picture AMontagu  路  3Comments

higuoxing picture higuoxing  路  3Comments

alinnert picture alinnert  路  3Comments

tinchox5 picture tinchox5  路  3Comments

shaodahong picture shaodahong  路  3Comments