hi ,my tailwindcss is not working for some reason pls help

i installed tailwind into my project. when i try to run script it keeps giving me the same error. Anyone got an idea on how to fix this issue please , i would greatly appreciate it [deprecation] Running tailwindcss without -i, please provide an input file. "warn - No utility classes were detected in your source files. If this is unexpected, double-check the content option in your Tailwind CSS configuration. warn - https://tailwindcss.com/docs/content-configuration"
5 Replies
Wolle
Wolle2y ago
1) you probably need -i src/styles.css 2) Do you have any Tailwind classes used in your .hmtl or .js files? If no, this warning is expected, if yes is your path correct? (tailwind.config.js is in the same folder as your src folder) (Tailwind should be under devDependencies in your package.json, but this should not be the problem.)
Dayo
Dayo2y ago
you're referencing your src folder in the tailwind config but all that's inside the folder is a css file where's your code at?
ian
ianOP2y ago
ya my tailwind config is in the same folder with src folder itself. Does that mean i can start building a project using tailwindcss? if yes will this error somehow popup while i work? ya in the src folder i only have a css file. I copied the path from a youtube video that told me to copy the path.The code is in the imgs, i can send you the folder with the whole project itself but its pretty empty since this is my first time and ive only done the npm steps. Im new to this so im trying to learn
Dayo
Dayo2y ago
then the warning is correct add some files to the src with tailwind classes and see if it works
ian
ianOP2y ago
okay thank you soooo much 😁
Want results from more Discord servers?
Add your server