transitive-bullshit / nextjs-notion-starter-kit

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://transitivebullsh.it/nextjs-notion-starter-kit
MIT License
6.17k stars 5.23k forks source link

Error: Failed to collect page data for /[pageId] #394

Open yunzhongci opened 1 year ago

yunzhongci commented 1 year ago

After yarn build , the error appears:

Error: Failed to collect page data for /[pageId]

And every time the [pageId] appears is different. [pageId] is different every time the error occurs。


> Build error occurred
Error: Failed to collect page data for /[pageId]
    at /Users/yun/Downloads/nextjs/node_modules/next/dist/build/utils.js:949:15
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  type: 'Error'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nooobcoder commented 1 year ago

Please check if you have configured your root notion page id correctly or not.

Also look for these configs additionally in the same file

  name: "Next.js Notion Starter Kit",
  domain: "nextjs-notion-starter-kit.transitivebullsh.it",
  author: "Travis Fischer"
yunzhongci commented 1 year ago

请检查您是否正确配置了根概念页面 ID

还要在同一个文件中查找这些配置

  name: "Next.js Notion Starter Kit",
  domain: "nextjs-notion-starter-kit.transitivebullsh.it",
  author: "Travis Fischer"

Make sure it is configured correctly, because my previous version can be deployed normally. And I completely use his configuration, but also the same type of error. In addition, it is possible to debug directly, but there is a problem when using the build local cache