Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

[Bug Report] Build failed when user doesn't create files for directory classifier. #1

Closed
ulivz opened this issue Jun 3, 2019 · 3 comments

Comments

@ulivz
Copy link
Member

ulivz commented Jun 3, 2019

Error

Rendering page: /archive/[Vue warn]: Error in render: "TypeError: Cannot read property 'interval' of undefined"

found in

---> <BaseListLayout>
       <Layout>
         <Anonymous>
           <Root>
error Error rendering /archive/: false
undefined
TypeError: Cannot read property 'interval' of undefined

Workaround

module.exports = {
  theme: '@vuepress/blog',
  themeConfig: {
    modifyBlogPluginOptions(blogPlugnOptions) {
      const archiveDirectoryClassifierIndex = blogPlugnOptions.directories.findIndex(d => d.id === 'archive')
      blogPlugnOptions.directories.splice(archiveDirectoryClassifierIndex, 1)
      return blogPlugnOptions
    },
}
@ulivz
Copy link
Member Author

ulivz commented Jun 23, 2019

Temporarily fixed at vuepress/vuepress-theme-blog@5a34e26

@ulivz
Copy link
Member Author

ulivz commented Jun 23, 2019

Fixed at d64964d from the root.

@rastislavcore
Copy link

Bug still occurs while using GitHub Actions.
vuepress/vuepress-theme-blog#106

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants