Skip to content

主题无法使用 #99

Open
Open
@charleschetty

Description

@charleschetty

yarn run docs:build 失败,yarn run docs:dev没有报错,但是网页打开黑屏。
node : v19.0.1
os: archlinux
yarn :1.22.19

`╰─ yarn run docs:build ─╯
yarn run v1.22.19
$ vuepress build docs
wait Extracting site metadata...
tip Apply theme vuepress-theme-mini (extends @vuepress/theme-default) ...
tip Apply plugin container (i.e. "vuepress-plugin-container") ...
tip Apply plugin @vuepress/last-updated (i.e. "@vuepress/plugin-last-updated") ...
tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...
tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...
tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...
tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ...
tip Apply plugin named-chunks (i.e. "vuepress-plugin-named-chunks") ...
tip Apply plugin sitemap (i.e. "vuepress-plugin-sitemap") ...
tip Apply plugin feed (i.e. "vuepress-plugin-feed") ...
tip Apply plugin @vuepress/google-analytics (i.e. "@vuepress/plugin-google-analytics") ...
tip Apply plugin @vuepress/back-to-top (i.e. "@vuepress/plugin-back-to-top") ...
tip Apply plugin flowchart-js (i.e. "vuepress-plugin-flowchart-js") ...
success vuepress-plugin-feed rss2 link added to siteConfig.head
success vuepress-plugin-feed atom1 link added to siteConfig.head
success vuepress-plugin-feed json1 link added to siteConfig.head

✔ Client
Compiled successfully in 8.02s

✔ Server
Compiled successfully in 5.62s

wait Rendering static HTML...
[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->


error Error rendering /: false
undefined
error Error rendering /archive/: false
undefined
error Error rendering /about/: false
undefined
[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



[Vue warn]: Error in render: "RangeError: Invalid time value"

found in

--->



error Error rendering /posts/demo-markdowm.html: false
undefined
error Error rendering /posts/dummy-post-1.html: false
undefined
error Error rendering /posts/dummy-post-11.html: false
undefined
error Error rendering /posts/demo-flowchart.html: false
undefined
error Error rendering /posts/dummy-post-10.html: false
undefined
error Error rendering /posts/dummy-post-2.html: false
undefined
error Error rendering /posts/dummy-post-5.html: false
undefined
error Error rendering /posts/dummy-post-3.html: false
undefined
error Error rendering /posts/dummy-post-4.html: false
undefined
error Error rendering /posts/dummy-post-7.html: false
undefined
error Error rendering /posts/dummy-post-6.html: false
undefined
error Error rendering /posts/dummy-post-8.html: false
undefined
error Error rendering /posts/dummy-post-9.html: false
undefined
error Error rendering /posts/vuepress-theme-mini.html: false
undefined
RangeError: Invalid time value
at formatDistance (node_modules/date-fns/esm/formatDistance/index.js:110:0)
at formatDistanceToNow (node_modules/date-fns/esm/formatDistanceToNow/index.js:92:9)
at Proxy.lastUpdated (layouts/Page.vue:12:30)
at Proxy.computedGetter (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue/dist/vue.runtime.common.dev.js:5483:19)
at Proxy.render (layouts/Page.vue:1:725)
at Vue._render (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue/dist/vue.runtime.common.dev.js:2590:28)
at resolve (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7221:33)
at waitForServerPrefetch (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7105:5)
at renderComponentInner (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7235:5)
at renderComponent (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7195:9)
at renderNode (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7112:9)
at resolve (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7232:9)
at waitForServerPrefetch (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7105:5)
at renderComponentInner (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7235:5)
at renderComponent (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7195:9)
at renderNode (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7112:9)
at resolve (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7232:9)
at waitForServerPrefetch (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7105:5)
at renderComponentInner (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7235:5)
at renderComponent (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7195:9)
at RenderContext.renderNode (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7112:9)
at RenderContext.next (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:3672:37)
at cachedWrite (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:3547:17)
at renderElement (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7343:9)
at renderNode (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7115:9)
at resolve (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7441:13)
at waitForServerPrefetch (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7105:5)
at render (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7443:9)
at Object.renderToString (/home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:7828:17)
at /home/charles/Documents/test/vuepress-theme-mini/node_modules/vue-server-renderer/build.dev.js:8162:34
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions