Skip to content

【部署异常】部署渲染提示RangeError: Invalid time value #2933

Open
@banpie

Description

@banpie

使用全新的Notion Next(4.7.7)渲染出现错误如下。

尝试:

  • 因为看到提示日期错误,不确定是否是文章的发布日期有什么格式问题,清空数据库的文章,保留配置信息,重新渲染,成功。
  • 把文章移动回数据库,重新渲染,就出现这个问题。
  • 连续4天,都重复尝试,还是都有同样的提示。

为了方便设定发布日期,我之前曾经在WPS中批量设置了文章的日期,然后复制Excel中的日期字段(yyyy-mm-dd)到notion数据库,曾经也遇到渲染问题,但是后面有人工全部选择所有文章的日期,渲染成功了,但是这一次又不行了。

RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at /vercel/path0/.next/server/pages/index.js:12:2463
    at Array.forEach (<anonymous>)
    at n (/vercel/path0/.next/server/pages/index.js:12:2332)
    at g (/vercel/path0/.next/server/pages/index.js:25:894)
    at async e3 (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:25:3907)
    at async exportPages (/vercel/path0/node_modules/next/dist/export/routes/pages.js:84:28)
    at async exportPageImpl (/vercel/path0/node_modules/next/dist/export/worker.js:205:16)
    at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:154:20)
    at async Object.exportPage (/vercel/path0/node_modules/next/dist/export/worker.js:236:20)
> Build error occurred
Error: Invariant: page wasn't built
    at /vercel/path0/node_modules/next/dist/build/index.js:1933:47
    at Array.map (<anonymous>)
    at /vercel/path0/node_modules/next/dist/build/index.js:1930:84
    at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:154:20)
    at async /vercel/path0/node_modules/next/dist/build/index.js:1543:17
    at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:154:20)
    at async build (/vercel/path0/node_modules/next/dist/build/index.js:366:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 1

相应配置
URL: banpie.info
Notion page: https://banpie.notion.site/f130c0e18a3245b2963e043b014a577d?v=137ccbb5e0a08090830c000cb6c5a8e8&pvs=4

截图
image

环境

  • 操作系统: [例如. iOS, Android, macOS, windows] Mac
  • 浏览器 [例如. chrome, safari, firefox]:Chrome
  • 版本 [e.g. 22]:版本 130.0.6723.59(正式版本) (x86_64)

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions