-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
What version of Tailwind CSS are you using?
v4.0.9 (4.0.7 works fine)
What build tool (or framework if it abstracts the build tool) are you using?
- Vite
6.2.0
What version of Node.js are you using?
v22.13.1
What browser are you using?
Chrome
What operating system are you using?
Debian (WSL2)
Reproduction URL
https://github.com/nachoaldamav/tailwind-debug-4.0.9
Describe your issue
With the change from the PR #16631 loading config files and component as packages break the candidates search.
Key points
- The config file (css) is loaded from
@my-org/tailwind-config/styles.css. - A button component loaded from
@my-org/button. - Theorically, using
@source "../node_modules/@my-org/buttonwould fix it, but it doesn't. - This could be caused by pnpm
node_modulesstructure, as the config file is not loaded fromnode_modules/@my-org/tailwind-config/styles.css, but fromnode_modules/.pnpm/@my-org+tailwind-config@1.0.0/node_modules/@my-org/tailwind-config/styles.css. - About pnpm, it means that
@sourceneeds to be../../../../../@my-org/button/distwhich is not very reliable.
I think re-opening this PR (#16425) could fix this issue, maybe making the default be the FileSystem one and optionally the Module Graph system.
itaymendel, kostaskoufogiannis, tpobozy, ekirvas and cayter
Metadata
Metadata
Assignees
Labels
No labels