简体   繁体   中英

Tailwind not styling my NextJs project in Ubuntu

Tailwind CSS is not styling my project at all in Ubuntu 20.04.

The project works fine in windows but in Ubuntu somehow it is not styling at all.

在此处输入图像描述

  1. globals.css 在此处输入图像描述

  2. _app.js 在此处输入图像描述

  3. tailwind.config.js 在此处输入图像描述

PS all other Tailwind projects working fine in Ubuntu (ie New tailwind projects are working fine).

Problem was with the Components folder. It was started with capital 'C', while it should be lowercase.

Windows is case insensitive that's why the problem was not occurring on the windows while Linux is case sensitive so it was not working properly.

For more detail refer: this issue on github

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM