Description
- I confirm that this is a issue rather than a question.
Bug report
During development, we created a component that went through each index.md
file in a folder based on the this.$site.pages.path
list. After upgrading to 1.0.0-alpha.30 to fix a few other issues we were having, It no longer works.
Component code:
<template>
<div>
<Content v-for="page in changelogPages" :key="page.key" :pageKey="page.key"/>
</div>
</template>
<script>
import _ from "lodash"
export default {
computed: {
changelogPages: function () {
let pages = this.$site.pages
.filter(pages => pages.path.startsWith("/docs/change-log/2"))
return _.orderBy(pages, 'path').reverse()
}
},
data: function () {
return {}
}
}
</script>
This results in the following errors.
looking at the Vue plugin for chrome, I can see that the page.key is there.
In the page, I am simply calling <ChangeLogList />
which invokes the above global-component.
Reference Links in repo
Global Component : https://github.com/okta/okta.github.io/blob/VuePress/packages/%40okta/vuepress-theme-default/global-components/ChangeLogList.vue
Component invoking ChangeLogList:https://github.com/okta/okta.github.io/blob/VuePress/packages/%40okta/vuepress-theme-default/components/ChangeLog.vue
Page that is uisng ChangeLog (View Raw): https://github.com/okta/okta.github.io/blob/VuePress/packages/%40okta/vuepress-site/docs/change-log/index.md
Version
1.0.0-alpha.30
Steps to reproduce
See Repo (and branch VuePress) https://github.com/okta/okta.github.io/tree/VuePress
What is expected?
Display inline the content of each changelog file
What is actually happening?
Throwing console errors
Other relevant information
- Your OS: Mac OS
- Node.js version: 11.6.0
- Browser version: 71.0.3578.98
- Is this a global or local install? Local
- Which package manager did you use for the install? Yarn