This error is relatively undetectable because when the page loads, it appears as if nothing is happening. However, when you open Developer Tools, you'll see that it actually returns a 500 Internal Server Error.
Usually caused by accessing documents in SSR code.
// NextJs SSR Code: for example
const { referrer } = document;
.....
const element = document.getElementById('my-element');