Next JS build failing due to ”Export encountered errors on following paths”

I ran into the same error a few days back.

A few Points I would want to clarify:

  1. 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.

Leave a Comment

tech