DropdownItem undefined in flowbite-react vite

57 Views Asked by At

I am attempting to use flowbite-react on my react vite project but i got this error Uncaught TypeError: DropdownItem is undefined here is my tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
  mode: "jit",
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
    "node_modules/flowbite-react/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {
      zIndex: {
        1000: "1000",
      },
      colors: {
        default: "#FDF5E6",
      
      },
    },
  },
  plugins: [require("flowbite/plugin")],
};
2

There are 2 best solutions below

0
On BEST ANSWER

Works now in the latest version:

https://www.npmjs.com/package/flowbite-react/v/0.7.2

0
On

Manage to solved it by down grading to flowbite-react version ^0.5.0