The error was caused by using Tailwind CSS v4 with an outdated PostCSS configuration. Here's what I fixed:
1. Downgraded to Tailwind CSS v3
*****Installed tailwindcss@^3.4.0 which is more stable with Create React App****
2. Updated PostCSS Configuration
Changed from the v4 syntax to the standard v3 syntax in postcss.config.js:
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
3. Fixed TypeScript Errors