tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
82.23k stars 4.16k forks source link

[v4] Broken types on @tailwindcss/postcss from version 4.0.0-alpha.19 #14253

Closed AlbertSabate closed 1 month ago

AlbertSabate commented 1 month ago

What version of Tailwind CSS are you using?

"@tailwindcss/postcss": "4.0.0-alpha.19", "@tailwindcss/postcss": "4.0.0-alpha.20",

What build tool (or framework if it abstracts the build tool) are you using?

BunJS 1.1.26

What version of Node.js are you using?

BunJS 1.1.26

What browser are you using?

N/A

What operating system are you using?

macOS

Reproduction URL

Just install the library and check the build folder, the problem is with @tailwindcss/postcss not with tailwindcss. You will find the .d.ts and .d.mts with export { }.

Can't be reproduced on the playground

Describe your issue

From version "@tailwindcss/postcss": "4.0.0-alpha.19" the types for the plugin @tailwindcss/postcss stopped working. After research I can find that the type file export becomes empty.

Screenshot 2024-08-25 at 10 54 21 PM

It should be as per version "@tailwindcss/postcss": "4.0.0-alpha.18". I can confirm downgrading to version "@tailwindcss/postcss": "4.0.0-alpha.18" everything is working fine.

Screenshot 2024-08-25 at 10 55 48 PM
philipp-spiess commented 1 month ago

@AlbertSabate We merged a fix for this in #14256, it'll be out in the next alpha release. Thanks a ton for reporting this!