morethanmin / morethan-log

😎 A static blog using notion database
https://morethan-log.vercel.app
MIT License
1.96k stars 1.57k forks source link

[Bug]: site.config.js에서 profile의 role을 변경했더니 TypeError가 발생합니다. #311

Open newdoin opened 11 months ago

newdoin commented 11 months ago

Describe the bug

role의 내용을 cloud-infra engineer로 변경 후 커밋하니 아래와 같은 에러가 발생합니다.

TypeError: Cannot read properties of undefined (reading '0')
--
21:49:33.476 | at /vercel/path0/.next/server/chunks/871.js:533:39
21:49:33.477 | at Array.filter (<anonymous>)
21:49:33.477 | at filterPosts (/vercel/path0/.next/server/chunks/871.js:532:6)
21:49:33.477 | at getStaticPaths (/vercel/path0/.next/server/pages/[slug].js:163:101)
21:49:33.477 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
21:49:33.477 | at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:699:33)
21:49:33.477 | at async /vercel/path0/node_modules/next/dist/build/utils.js:1127:113
21:49:33.477 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:103:20)
21:49:33.479 |  
21:49:33.479 | > Build error occurred
21:49:33.482 | Error: Failed to collect page data for /[slug]
21:49:33.483 | at /vercel/path0/node_modules/next/dist/build/utils.js:1158:15
21:49:33.483 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
21:49:33.483 | type: 'Error'
21:49:33.483 | }
21:49:33.544 | error Command failed with exit code 1.
21:49:33.545 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
21:49:33.567 | Error: Command "yarn run build" exited with 1

To reproduce

See error

Browser

MacOs

Validations

Msekoo commented 7 months ago

so did you resolve it