even i got the same issue than found out the command ur using will only work for tailwind v3 not v4. so instead use v3 of taikwind and everything runs good. and the offical tailwind document for vite+react for tailwind is not there. So using tailwind v3 is better option i guess.