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
Thanks for this package, it has worked great so far. But since Yesterday (we didn't run the build a few days before that, so maybe earlier) we get this error
Error occurred prerendering page "/blog". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of undefined (reading 'a741637a-07bc-47d5-9114-ffffffffffa5')
at B (file:///myCodeWebsite/node_modules/notion-utils/build/index.js:1:1602)
at file:///myCodeWebsite/node_modules/notion-utils/build/index.js:1:7307
at Array.flatMap (<anonymous>)
at Ye (file:///myCodeWebsite/node_modules/notion-utils/build/index.js:1:6637)
at getPreviewImageMap (myCodeWebsite\.next\server\chunks\9077.js:302:80)
at Object.getCollectionData (myCodeWebsite\.next\server\chunks\9077.js:241:115)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getStaticProps (myCodeWebsite\.next\server\pages\blog.js:303:25)
at async renderToHTML (myCodeWebsite\node_modules\next\dist\server\render.js:385:20)
at async myCodeWebsite\node_modules\next\dist\export\worker.js:286:36
I got a similar error and it was because there were pages in the Trash that react-notion-x was trying to render.
This is fixed by pull request #514. You could try merging it manually into your repo if possible.
Edit: this pull request fixes it for me when running in the dev environment but I still get fatal errors related to trashed pages when building. #514 is now merged into the master branch - thank you!
Description
Thanks for this package, it has worked great so far. But since Yesterday (we didn't run the build a few days before that, so maybe earlier) we get this error
Notion Test Page ID
todo
The text was updated successfully, but these errors were encountered: