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.27k stars 5.29k forks source link

page load error { pageId: '430e6b3a-04ba-45e8-ae55-8a386551481b', spaceId: null } #322

Open animemandir opened 2 years ago

animemandir commented 2 years ago

Description

notion getPage 430e6b3a04ba45e8ae558a386551481b
6:19:14 PM: page load error { pageId: '430e6b3a-04ba-45e8-ae55-8a386551481b', spaceId: null } undefined Notion page not found "430e6b3a04ba45e8ae558a386551481b"
6:19:14 PM: > Build error occurred
6:19:14 PM: Error: Error loading page "430e6b3a-04ba-45e8-ae55-8a386551481b"
6:19:14 PM:     at /opt/build/repo/.next/server/chunks/398.js:46:19
6:19:14 PM:     at Array.reduce (<anonymous>)
6:19:14 PM:     at getAllPagesImpl (/opt/build/repo/.next/server/chunks/398.js:43:51)
6:19:14 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
6:19:14 PM:     at async getAllPagesImpl (file:///opt/build/repo/node_modules/p-memoize/dist/index.js:43:28)
6:19:14 PM:     at async getSiteMap (/opt/build/repo/.next/server/chunks/398.js:28:28)
6:19:14 PM:     at async getStaticPaths (/opt/build/repo/.next/server/pages/[pageId].js:56:21)
6:19:14 PM:     at async buildStaticPaths (/opt/build/repo/node_modules/next/dist/build/utils.js:490:31)
6:19:14 PM:     at async /opt/build/repo/node_modules/next/dist/build/utils.js:632:119
6:19:14 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20) {
6:19:14 PM:   type: 'Error'
6:19:14 PM: }
6:19:14 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
6:19:14 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
6:19:14 PM: ​
6:19:14 PM: ────────────────────────────────────────────────────────────────
6:19:14 PM:   "build.command" failed                                        
6:19:14 PM: ────────────────────────────────────────────────────────────────

Got this error, idk much about nextjs or notion so im a noob here. sorry if this error is due to my mistake. I used the transitive-bullshit branch and edited the site.config.

Here is my config file - config

Notion Test Page ID

My notion page

litianqi commented 1 year ago

I have the same error before, I fixed it by publish my notion page, publish button is inside the share button of notion page.