[11:23:14.351] Cloning github.com/itwwangfeng/NotionNext (Branch: main, Commit: a07bf51)
[11:23:14.540] Previous build cache not available
[11:23:15.124] Cloning completed: 772.227ms
[11:23:15.413] Running "vercel build"
[11:23:16.075] Vercel CLI 28.9.0
[11:23:16.527] Installing dependencies...
[11:23:16.977] yarn install v1.22.17
[11:23:17.041] info No lockfile found.
[11:23:17.054] [1/4] Resolving packages...
[11:23:24.619] warning react-notion-x > react-use > nano-css > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[11:23:26.039] warning valine > leancloud-storage > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[11:23:26.112] warning valine > leancloud-storage > superagent@3.8.3: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
[11:23:26.150] warning valine > leancloud-storage > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
[11:23:26.201] warning valine > leancloud-storage > leancloud-realtime > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[11:23:26.760] warning valine > leancloud-storage > leancloud-realtime > @leancloud/platform-adapters-node > @leancloud/adapters-superagent > superagent@5.3.1: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
[11:23:26.763] warning valine > leancloud-storage > leancloud-realtime > @leancloud/platform-adapters-node > @leancloud/adapters-superagent > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
[11:23:27.307] warning @waline/client > vue > @vue/compiler-sfc > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[11:23:30.166] [2/4] Fetching packages...
[11:23:57.206] [3/4] Linking dependencies...
[11:23:57.209] warning "gitalk > react-flip-move@2.9.14" has incorrect peer dependency "react@0.13.x || 0.14.x || 15.x.x".
[11:23:57.209] warning "gitalk > react-flip-move@2.9.14" has incorrect peer dependency "react-dom@0.13.x || 0.14.x || 15.x.x".
[11:23:57.211] warning "react-facebook > react-spinner-children@1.0.8" has incorrect peer dependency "react@15.x || 16.x".
[11:23:57.211] warning " > react-messenger-customer-chat@0.8.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0".
[11:23:57.211] warning "react-notion-x > react-image@4.0.3" has unmet peer dependency "@babel/runtime@>=7".
[11:23:57.212] warning "react-notion-x > react-lazy-images@1.1.0" has incorrect peer dependency "react@^15 || ^16".
[11:23:57.213] warning "react-notion-x > react-lazy-images@1.1.0" has incorrect peer dependency "react-dom@^15 || ^16".
[11:23:57.214] warning "react-notion-x > react-pdf > file-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[11:23:57.216] warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[11:24:09.262] [4/4] Building fresh packages...
[11:24:10.684] success Saved lockfile.
[11:24:10.692] Done in 53.72s.
[11:24:10.762] Detected Next.js version: 12.1.6
[11:24:10.764] Running "yarn run build"
[11:24:11.109] yarn run v1.22.17
[11:24:11.174] $ next build && next-sitemap --config next-sitemap.config.js
[11:24:11.791] info - Loaded env from /vercel/path0/.env.local
[11:24:12.438] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[11:24:12.440] This information is used to shape Next.js' roadmap and prioritize features.
[11:24:12.440] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[11:24:12.440] https://nextjs.org/telemetry
[11:24:12.440]
[11:24:13.287] info - Checking validity of types...
[11:24:17.198] info - Creating an optimized production build...
[11:25:34.104] info - Compiled successfully
[11:25:34.105] info - Collecting page data...
[11:25:35.653] [请求API] from:category-paths id:e098eefe06e04477a0f94ba27d4c2bac
[11:25:35.659] [请求API] from:slug-paths id:e098eefe06e04477a0f94ba27d4c2bac
[11:25:35.870] [请求API] from:category-paths id:e098eefe06e04477a0f94ba27d4c2bac
[11:25:36.076] [响应成功]: from:category-paths
[11:25:36.077] [API耗时] 425ms
[11:25:36.081]
[11:25:36.082] > Build error occurred
[11:25:36.088] TypeError: Cannot convert undefined or null to object
[11:25:36.088] at Function.values (<anonymous>)
[11:25:36.089] at getAllPageIds (/vercel/path0/.next/server/chunks/334.js:292:16)
[11:25:36.089] at getPageRecordMapByNotionAPI (/vercel/path0/.next/server/chunks/334.js:591:88)
[11:25:36.089] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[11:25:36.089] at async getGlobalNotionData (/vercel/path0/.next/server/chunks/334.js:420:88)
[11:25:36.090] at async getStaticPaths (/vercel/path0/.next/server/pages/category/[category].js:92:29)
[11:25:36.090] at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:491:31)
[11:25:36.090] at async /vercel/path0/node_modules/next/dist/build/utils.js:632:119
[11:25:36.090] at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20) {
[11:25:36.090] type: 'TypeError'
[11:25:36.090] }
[11:25:36.169] error Command failed with exit code 1.
[11:25:36.170] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[11:25:36.197] Error: Command "yarn run build" exited with 1 |