Closed chaveamin closed 1 year ago
Hi @chaveamin, change the filename next.config.mjs to next.config.js.
I did it before(with .js and .cjs) but it shows the same error
with .js:
with .cjs
and no result with adding "type": "module"
in packege.json file
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
This error occurs when running dev server:
module is not defined in ES module scope