It seems like problem is with ESM Format try renaming postcss.config.js to postcss.config.cjs
postcss.config.js
postcss.config.cjs