79203842

Date: 2024-11-19 14:39:15
Score: 2.5
Natty:
Report link
   // I am having the same problem using tailwindCss with React currently.
    
    /I have an EJS Project I'm currently working on and I am using tailwindCss and It's working here's what the Tailwindconfig file looks like 
    
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./public/**/*.{js,css}",
    "./views/**/*.ejs",
    "./node_modules/tw-elements/js/**/*.js",
  ],
  darkMode: "class",
  plugins: [require("tw-elements/plugin.cjs")],
};

   //your Vscode might give you a suggestion to change to ES lint version , you can choose to ignore it or do it . It should work. Here's my postcss file config 

export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same problem
  • Low reputation (1):
Posted by: Okoro Daviz Ezichi