adrianhajdin / project_tiktik

https://jsmastery.pro
599 stars 181 forks source link

tailwind css styles not applying #7

Open shafahad09 opened 2 years ago

shafahad09 commented 2 years ago

I installed the tailwind css as said in the video still when I use the class name the styles are not getting applied. Please solve this issue for me

jamcmich commented 2 years ago

Hey @shafahad09 👋,

The problem is most likely in your tailwind.config.js file. I'm not sure what your project's configuration is but here's a quick checklist:

Dependencies

TailwindCSS

amlabsinc commented 2 years ago

Ran into same problem after creating the navbar. I fixed the problem by creating the project over. First installing nextjs, then installing tailwindcss with the Gist for the tailwind.config. Then I installed sanity. The problem was the file directory for the tailwind. Atleast that was my issue, but after that it worked fine

chavanrahul23 commented 1 year ago

I also had same issue, try using this in tailwind.config.js content: [ 'src/pages/*/.{js,ts,jsx,tsx}',
'./components/*/.{js,ts,jsx,tsx}', ],

Alea-Tennu commented 1 year ago

The issue I've got is that my videos component isn't displayed on the screen even though I've followed everything in the video. But I think I know where the issue is from, just don't know how to resolve it Any help will be much appreciated 🙏🏼