module is not defined in ES module scope
chaveamin opened this issue · comments
Hi @chaveamin, change the filename next.config.mjs to next.config.js.
I am quite sure this is not an issue with next-image-export-optimizer. Try to comment out on a first try the imports in your next.config.js and if the error persists, everything that comes from next-image-export-optimizer.
Problem solved by deleting the library completely and reinstalling it again, Thanks