I am attempting to deploy my nextjs site to netlify and everything works out until I go to view my website: cognito-project.netlify.com
The site loads and I can see the content for a fraction of a second, then I get “An unexpected error has occurred.”
Looking at the console I see the error:
Super expression must either be null or a function, not undefined.
I’m not sure what that means or what is causing it. This error only appears when I deploy my site to netlify.
The code for the website can be seen here github.com/Cognito-Project/website
My build script for netlify is just
npm run export
Thanks in advance!