Tailwindcss: info and warn console messages duplicated

Created on 18 Aug 2020  路  7Comments  路  Source: tailwindlabs/tailwindcss

Describe the problem:

Using the new version 1.7, with future or experimental flags,
in console the warn and info messages are duplicated during build or using npm run hot

image

Most helpful comment

Fixed in v1.7.1, might be able to improve the fix but wanted to get something out quickly to at least stop annoying people for now :)

All 7 comments

I also have the same issue using Tailwind 1.7 with Angular without any flags set. I tried setting removeDeprecatedGapUtilities: true in future setting but this just changes the warnings in to info messages. The messages are repeated over 200 times. The previous version works without issue.

image

I am facing a similar issue to this, however, in my case, the message is somehow being attached to the top of my minified css file during build, which causes the browser to no be able to read it and thus removes all css from my website. I realize there is something else at play in this case, but allowing an option to simply silence all console messages during build would be incredibly helpful here.

Annotation 2020-08-18 153035

It looks like the amount of the duplicated warning messages scales with the amount of CSS modules

I created a sample project for consistently reproducing this duplication: https://github.com/wongmjane/sampletail

The build log is available here: https://vercel.com/wongmjane/sampletail/g2vnyrd05

Fixed in v1.7.1, might be able to improve the fix but wanted to get something out quickly to at least stop annoying people for now :)

The upcoming page says that gap-x/y- should replace col/row-gap- but it's warning me about files where i'm only using gap-! has this also been deprecated?

Tailwind doesn't read your HTML files at all to detect usage, it simply warns you until you explicitly opt-in saying you are comfortable disabling the old utilities. You will continue to see that warning forever unless you add removeDeprecatedGapUtilities: true, even if you are only using the new utility names.

Updated to 1.7.1, added removeDeprecatedGapUtilities: true, now I'm only getting this once:

info - You have opted-in to future-facing breaking changes: removeDeprecatedGapUtilities
info - These changes are stable and will be the default behavior in the next major version of Tailwind.

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rgaufman picture rgaufman  路  3Comments

AlexVipond picture AlexVipond  路  3Comments

chasegiunta picture chasegiunta  路  3Comments

ghost picture ghost  路  3Comments

chintanbanugaria picture chintanbanugaria  路  3Comments