nextjs-notion-starter-kit icon indicating copy to clipboard operation
nextjs-notion-starter-kit copied to clipboard

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

Open yunzhongci opened this issue 2 years ago • 2 comments

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.

yunzhongci avatar Nov 03 '22 02:11 yunzhongci

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"

nooobcoder avatar Nov 03 '22 05:11 nooobcoder

请检查您是否正确配置了根概念页面 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

yunzhongci avatar Nov 03 '22 06:11 yunzhongci