In Nextjs application while I'm run the command for build and export there was an ReferenceError I've attached the screenshot for your reference.. When remove the import f chartjs-plugin-zoom from the project, the build and export works properly..