The layout and design is different in production mode and some components are not visible even though they are there in dev mode and when I npm build, as well as when I inspect them on browser.
Package versions:
"tailwindcss": "^3.4.17"
"daisyui": "^5.0.50",
"postcss": "^8.5.4"
Dev Mode
Production (I use Vercel)
I tried modifying the tailwind.config.js a couple of times. All my components folders are in lowercase. This is tailwind.config.js:
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/components/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontFamily: {
bebas: ['"Bebas Neue"', "sans-serif"],
dmsans: ['"DM Sans"', "sans-serif"],
},
},
},
plugins: [require("daisyui")],
};
This is the Dashboard code:
export default async function Dashboard() {
return (
<div className="tabs tabs-lg tabs-border w-full">
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Truck Drivers"
defaultChecked
/>
<div className="tab-content border-base-300 ">
<div className="bg-base-100 p-3 flex md:justify-between justify-center items-center space-x-4 md:space-x-2 lg:space-x-1 ">
<FloatingActionButton className="lg:hidden block custom-fab-class" />
</div>
{/* hardcoded */}
<div className="h-[calc(100vh-18rem)] bg-base-100 p-4 overflow-auto">
<Suspense fallback={<div>Loading...</div>}>
<DriverCards />
</Suspense>
</div>
</div>
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Trucks"
/>
<div className="tab-content bg-base-100 border-base-300 p-6">
<div className="flex justify-between items-center mb-4"></div>
<Suspense fallback={<div>Loading...</div>}>
<DriverCards />
</Suspense>
</div>
</div>
);
}
I have also tried setting it up based on docs but it completely wiped out my UI

