简体   繁体   English

Tailwind 没有在 Ubuntu 中设置我的 NextJs 项目的样式

[英]Tailwind not styling my NextJs project in Ubuntu

Tailwind CSS is not styling my project at all in Ubuntu 20.04. Tailwind CSS 在 Ubuntu 20.04 中根本没有设计我的项目。

The project works fine in windows but in Ubuntu somehow it is not styling at all.该项目在 windows 中运行良好,但在 Ubuntu 中不知何故它根本不是样式。

在此处输入图像描述

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

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

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

PS all other Tailwind projects working fine in Ubuntu (ie New tailwind projects are working fine). PS 所有其他 Tailwind 项目在 Ubuntu 中运行良好(即新的 Tailwind 项目运行良好)。

Problem was with the Components folder.问题出在 Components 文件夹上。 It was started with capital 'C', while it should be lowercase.它以大写“C”开头,而应该是小写。

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. Windows 不区分大小写,这就是为什么 windows 上没有出现问题,而 Linux 区分大小写,因此无法正常工作。

For more detail refer: this issue on github有关详细信息,请参阅: github 上的此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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