Skip to content

after updating Tailwind => random strings in the postcss file causing styles to break #7251

@ohabash

Description

@ohabash

What version of Tailwind CSS are you using?
"@tailwindcss/aspect-ratio": "^0.4.0",
"@tailwindcss/forms": "^0.4.0",
"@tailwindcss/line-clamp": "^0.3.1",
"@tailwindcss/typography": "^0.5.1",

What build tool (or framework if it abstracts the build tool) are you using?
"postcss": "^7.4.5",
"postcss-import": "^14.0.2",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^10.1.1",

What version of Node.js are you using?
v14.16.0

The Issue

When build happens; all the scss is minified with postcss. In the minified file the style are all working until you get to @import 'tailwindcss/utilities'; then all styles are broken (not readable in any browser).

When i prettified the postcss styles i could see some extra code that is causing the problem.
Screen Shot 2022-01-28 at 1 08 50 PM

this is not css so why is it in the postcss file?

.\[k\:string\] {
	k: string
}

.\[https\:\/\/en\.wikipedia\.org\/wiki\/Uname\#Examples\] {
	https:

Does anyone know where this is coming from? It looks like a TS interface or json of some sort

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions