You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm also not sure if my posted workaround above is actually sufficient. For some reason it seems to be working in my isolated test case above, but not in our larger repo using the same versions.
I have a relatively large repo which I upgraded from 3 -> 4 beta -> 4.
Mine's actually happening on a regular routed segments (/my/route/), its probably happening on leaf segments too (/my/route/[id])
I could use some of the old tailwind sizes like h-96 but anything new or calculated wasn't working. Was racking my head around it with some new components over the past couple days.
I had the feeling that it was some of the files weren't being scanned over by tailwind to generate the CSS for it.
If its not working in your larger repo is there some complexity in the path names to your js/ts/etc files?
What version of Tailwind CSS are you using?
v4.0.3
What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using?
23.5.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://github.com/nicksergeant/tailwind-v4-dynamic-params/
Describe your issue
If you are disabling automatic detection with:
and then configuring a glob pattern like this:
Source files in directories such as
[...slug]
will not be picked up: https://github.com/nicksergeant/tailwind-v4-dynamic-params/blob/main/app/%5B...slug%5D/page.tsxI'm not sure if this is a bug per se, and I have found this workaround:
Example page showing missing style: https://github.com/nicksergeant/tailwind-v4-dynamic-params/blob/main/app/%5B...slug%5D/page.tsx#L4
But I was surprised that
./**/*
was not working to pick those up.The text was updated successfully, but these errors were encountered: