---
title: "Discussion on \"Error: Malformed PostCSS Configuration - NextJS\" | Hashnode"
description: "Discussion on \"Error: Malformed PostCSS Configuration - NextJS\". Hi, I faced this error while trying to incorporate \"Dark Mode\".\nMy project stack included : Next JS, Tailwind CSS.\nThis error could be mitigated in the following ways  (atleast it worked for me):\n\nRemove the \"require\" keyword in post.config.js file\n\n..."
url: "https://hashnode.com/posts/error-malformed-postcss-configuration-nextjs/6213d1c395c64c6eda455060"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Error: Malformed PostCSS Configuration - NextJS](https://dev21.hashnode.dev/error-malformed-postcss-configuration-nextjs?utm_source=hashnode&utm_medium=feed)

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 ...

Feb 21, 2022 · 1 min read · dev21.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#postcss](https://hashnode.com/tag/postcss)

## Written by

[Devkant Swargiary](https://hashnode.com/@Dev21)

@Dev21 · Bengaluru, India

  
[View profile](https://hashnode.com/@Dev21)

Full Stack Developer

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.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
