I was facing the same error turns out you will have to re install the vite/react app and start it again using this guide https://v3.tailwindcss.com/docs/guides/vite You cant add tailwind to pre running app