nextjs-notion-starter-kit
nextjs-notion-starter-kit copied to clipboard
Error: Failed to collect page data for /[pageId]
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.
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"
请检查您是否正确配置了根概念页面 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