Error: Malformed PostCSS Configuration - NextJS

Full Stack Developer. I have hands on experience in crafting web applications using TypeScript, Next , React ,TailwindCSS. I have also worked with PostgresDB and AWS S3. I have also developed dAPP based upon ERC 20 , ERC 721 tokens.
Hi, I faced this error while trying to incorporate "Dark Mode".
My project stack included : Next JS, Tailwind CSS.
This error could be mitigated in the following ways (atleast it worked for me):
- Remove the "require" keyword in post.config.js file


- In the tailwind.config.js file replace purge with content . The latest tailwind documentation suggest the same.


I hope it helps.
Thanks for reading.



