-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
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
@import "tailwindcss";
@import "@jamsr-ui/theme/styles.css";
/* This is not working */
@source "../node_modules/@jamsr-ui";
/* These are working */
/* @source "../node_modules/@jamsr-ui/text"; */
/* @source "../node_modules/@jamsr-ui/button"; */
/* @source "../node_modules/@jamsr-ui/utils"; */
/* @source "../node_modules"; */
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 working
vishalx07, adityaa72 and techniq