I faced the same issue despite followin the migration guide from v3. Reading this answer, I created a .postcssrc.json
file instead of postcss.config.[js|mjs]
and it solved it !
// .postcssrc.json
{
"plugins": {
"@tailwindcss/postcss": {}
}
}