You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not necessarily a "bug," but I had one of my deploys failing on Vercel after merging branches - I took a look at why, and it appears that if you create a page with some properties (such as the slug) filled and the rest unfilled, the deployment fails with the following error:
Build error occurred
--
TypeError: Cannot read properties of undefined (reading '0')
at /vercel/path0/.next/server/chunks/89.js:418:39
at Array.filter ()
at filterPosts (/vercel/path0/.next/server/chunks/89.js:417:6)
at getStaticPaths (/vercel/path0/.next/server/pages/[slug].js:388:102)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:491:31)
at async /vercel/path0/node_modules/next/dist/build/utils.js:632:119
at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20) {
type: 'TypeError'
To fix, simply assign the pages with properties filled or delete all of the properties so that the project deploys properly. As a sidenote, huge thanks for creating such an amazing project with Notion database integration!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Not necessarily a "bug," but I had one of my deploys failing on Vercel after merging branches - I took a look at why, and it appears that if you create a page with some properties (such as the slug) filled and the rest unfilled, the deployment fails with the following error:
To fix, simply assign the pages with properties filled or delete all of the properties so that the project deploys properly. As a sidenote, huge thanks for creating such an amazing project with Notion database integration!
Beta Was this translation helpful? Give feedback.
All reactions