Skip to content

tailwind css is not working after deploy on vercel/netlify #8874

Answered by ichenglin
saiful-shaakil asked this question in Help
Discussion options

You must be logged in to vote

I'm not quite sure whether or not this was the issue,
but in tailwind.config.js you specified the content path to be "./components/**/*.{js,ts,jsx,tsx}",
while the actual source folder was named Components.

Maybe try editing the fifth line of tailwind configuration file and see if it works?
Navigate to tailwind.config.js and replace the line below

"./components/**/*.{js,ts,jsx,tsx}",

with

"./Components/**/*.{js,ts,jsx,tsx}",

Replies: 14 comments 38 replies

Comment options

You must be logged in to vote
29 replies
@rayenbenhassen07
Comment options

@amanqureshi454
Comment options

@nazish-16
Comment options

@SpooRe91
Comment options

@pedrocnadais
Comment options

Answer selected by saiful-shaakil
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wongjn
Comment options

Comment options

You must be logged in to vote
2 replies
@DarkAsfu
Comment options

@ArshadSherif
Comment options

Comment options

You must be logged in to vote
4 replies
@diptnc
Comment options

@PriyankaSoni03
Comment options

@diptnc
Comment options

@PriyankaSoni03
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PriyankaSoni03
Comment options

Comment options

You must be logged in to vote
1 reply
@diptnc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet