I experienced this exact thing and it drove me crazy. The docs were not clear at all about how to fix it, in the end I would rather have a slightly slower but accurate app than what Nextjs was providing. I mean its a free framework at the end of the day so its great to have this option but you need to be aware of what you are getting yourself into.