You’re having a completely different issue based on: Unable to build Next.js project after integrating Sentry