Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tailwind V3 causing TypeError: Cannot read property '500' of undefined

I recently tried to upgrade my project to tailwind css and I'm getting this error

Console Error

this is my tailwind config

 module.exports = {
      mode: "jit",
      purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
      darkMode: "class", // or 'media' or 'class'
      theme: {
        extend: {
          colors: {
            secondaryDark: "#171A1A",
            primaryDark: "#090A0A",
            neonOrange: "#FF9933",
            redditRed: "#FF5700",
            cardGradientPrimary: "#ff930f",
            cardGradientSecondary: "#fff95b",
          },
        },
      },
      variants: {
        extend: {},
      },
      plugins: [require("@tailwindcss/forms")],
    };
like image 505
KeoooDev Avatar asked Sep 06 '25 13:09

KeoooDev


2 Answers

I have the same issue after upgrade to tailwind v3 and fixed it by update @tailwindcss/forms to 0.4.0

like image 128
cheng Avatar answered Sep 08 '25 02:09

cheng


try this :

npm install -D @tailwindcss/forms@next

to update the plugins @tailwindcss/forms

like image 32
ANDRIANIAINA Avatar answered Sep 08 '25 03:09

ANDRIANIAINA