debugging sentry: _error.js called with falsy error

Nazreen Mohamad
2 min readAug 28, 2023

This is for those who are using Sentry inside a Next.js app

Hopefully your root cause was the same as mine.

My set up: Next.js app that was deployed via Static Site Generation.

The offender: getInitialProps inside the stock _error.js that Sentry told me to set up.