#Incomplete CSS Rendering while deploying on vercel
54 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Incomplete CSS Rendering while deploying on vercel
this is the final output of the above:
https://amanjaiswal-git-main-ajais980s-projects.vercel.app
some of the chunks are processed
npm run build & npm run start should be the same as production build on vercel
can you share your tailwind.config.js?
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [
require('tailwind-scrollbar')
],
};
export default config;
but this gives me the perfect output, when locally done
@pliant storm can you pls help 
can you share your workspace directory?
you mean the whole source code?
or the tree layout
tree layout - your project directory structure
want to see if your tailwind config is covering all of your pages and components
I guess it should be as nothing is broken in the dev but anyway
Portfolio
│ .gitignore
│ next-env.d.ts
│ next.config.ts
│ package-lock.json
│ package.json
│ postcss.config.js
│ README.md
│ tailwind.config.ts
│ tsconfig.json
│
├───@types
│ └───splidejs
│ index.d.ts
│
├───app
│ globals.css
│ layout.tsx
│ page.tsx
│
├───Components
│ About.tsx
│ BackgroundCircles.tsx
│ ContactMe.tsx
│ Header.tsx
│ Hero.tsx
│ Projects.tsx
│ Skills.tsx
│
└───public
ffa.png
pfp.jpeg
serum.png```
oh you are using "Components"
yeah
so let's do this
rename your "Components" => "my-components" and also change your tailwind config "components" => "my-components"
and then commit and push your changes
💀 bro wtf
it worked
damn
but how
and why
okay let me explain
to conclude, avoid using camel casing, I would recommend snake casing
btw, didn't you notice what was the issue?
nope
it was the casing
your directory was "Components" and in your tailwind config, it was "components"
it worked on your local but didn't work in your server
oh yes I noticed it just now
that was why some of your tailwind classnames were applied
great to hear that
you can mark solution if it helped you!
lemme change it back to Components
??? why?
to see if it works again or not lol
use "components"
yes using it now in lowercase only
the reason we didn't direclty rename "components" from "Components" is becasue github won't notice it
hm
thanks a lot brother for giving your time and helping me

This question has been marked as answered! If you have any other questions, feel free to create another post
[Click here](#1300904923055001711 message)