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.