I ran into the same error a few days back.
A few Points I would want to clarify:
- Build happens as per the pages and URLs of the browser.
If you are seeing something like
Export encountered errors on following paths:
/about
Then you should copy “/about” and paste it in front of the current URL like:
http://localhost:3000/about
Then you will see the error or any major warning.
Resolve it, you are ready to Build.