-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@source directive not working with pnpm #16038
Comments
Yaa, how to fix?? |
This also affects this makes it work; @import 'tailwindcss';
@source '../../node_modules/tablewind/dist'; but this one doesn't. @import 'tailwindcss';
@source '../../node_modules/tablewind'; |
@adambirds Thanks for looking into this and for explaining the issue and potential ways to fix this in #16669. Going to merge this issue into #16669 so we only track this at one place 👍 |
@philipp-spiess Thanks, but this is not a duplicate of #16669. I don't have |
@adityaa72 Thanks for the additional context, I've reopened so we can investigate 👍 |
Hey! Alright we figured it out and it should be solved by #17391 and will be available in the next release. |
What version of Tailwind CSS are you using?
v4.0.1
What build tool (or framework if it abstracts the build tool) are you using?
Next.js v15.1.6
What version of Node.js are you using?
v20.0.0
What browser are you using?
Firefox
What operating system are you using?
macOS
Reproduction URL
Tailwind 4 with pnpm
Tailwind 4 with yarn
Describe your issue
@source directive not working for node_modules packages with pnpm and nextjs. The same code is working with nextjs and yarn, and nextjs and npm, also same package works with pnpm with vite with
@tailwindcss/vite
Here
@source "../node_modules/@jamsr-ui";
is not working but nested@source
are working as like@source "../node_modules/@jamsr-ui/text";
.Even
@source "../node_modules"
is workingThe text was updated successfully, but these errors were encountered: