Trying to import Flowbite to work with it for Navi navigation menu. So added the following to tailwind.config.js
:
/** @type {import('tailwindcss').Config} config */
import flowbite from 'flowbite';
const config = {
content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
theme: {
container: {
center: true,
padding: {
DEFAULT: '.625rem',
sm: '1.25rem'
}
},
screens: {
'sm': '640px',
'md': '768px',
'lg': '1300px',
},
fontFamily: {
'body': ['"Inconsolata"', 'Serif'],
'heading': ['"Poppins"', "Inconsolata"],
},
extend: {
colors: {
'black-100': '#0c1c2e',
'black-200': '#000',
'grey': '#414141',
'off-white': '#e6ecef',
'blue': '#2d80e2',
'red': '#e95941',
'yellow': '#fed15a',
'cyan': '#71e2df',
},
spacing: {
'16': '4.375rem'
},
fontSize: {
'xs':'.9375rem',
'2xl':'1.5625rem',
'4xl':'2.5rem',
'6vw': '6vw',
'9vw': '9vw',
'12vw': '12vw'
}
},
},
plugins: [
flowbite,
],
};
export default config;
but then I get this error:
│ │ Module build failed (from ../node_modules/postcss-loader/dist/cjs.js):
│ │ TypeError: Cannot read properties of undefined (reading '__isOptionsFunction')
│ │ at node_modules/tailwindcss/lib/util/resolveConfig.js:199:24
│ │ at Array.forEach (<anonymous>)
│ │ at node_modules/tailwindcss/lib/util/resolveConfig.js:198:17
│ │ at Array.forEach (<anonymous>)
│ │ at extractPluginConfigs (node_modules/tailwindcss/lib/util/resolveConfig.js:188:13)
│ │ at resolveConfig (node_modules/tailwindcss/lib/util/resolveConfig.js:239:12)
│ │ at resolveConfig (node_modules/tailwindcss/lib/public/resolve-config.js:20:39)
│ │ at getTailwindConfig (node_modules/tailwindcss/lib/lib/setupTrackingContext.js:71:88)
│ │ at node_modules/tailwindcss/lib/lib/setupTrackingContext.js:100:92
│ │ at node_modules/tailwindcss/lib/processTailwindFeatures.js:48:11
│ │ at plugins (node_modules/tailwindcss/lib/plugin.js:38:69)
│ │ at LazyResult.runOnRoot (node_modules/postcss/lib/lazy-result.js:357:16)
│ │ at LazyResult.runAsync (node_modules/postcss/lib/lazy-result.js:286:26)
│ │ at async Object.loader (node_modules/postcss-loader/dist/index.js:84:14)
What is the proper way to import and use this plugin ?