.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
correct render
The first page I went to can render correctly, when I click link,The following error occurred

杩欎釜闂鎴戜篃閬囧埌浜嗭紝鐪嬪埌涔嬪墠淇杩囪繖涓棶棰橈紝浣嗘槸涓轰粈涔坴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.
VuePress 1.2.0
Vue.js devtools 5.3.3
dev mode./route-a and route- b. Everything works well, no errors./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.3Reproduction Steps
- Run the project in
devmode.- Open it in browser in a fresh tab.
- Open Chrome dev tools but only go to Console tab.
- Navigate between routes
/route-aandroute- b. Everything works well, no errors.- Open Vue tab in Chrome dev tools to activate Vue.js devtools then go back to Console tab.
- 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
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