-
Notifications
You must be signed in to change notification settings - Fork 4.5k
No classes generated in monorepo setup with Yarn PnP #17739
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
Comments
I can confirm that this monorepo (using |
@bjornars probably you can try to use https://tailwindcss.com/docs/detecting-classes-in-source-files#setting-your-base-path |
Thanks, that worked 👍 Sorry for derailing your issue. |
I think this may be due to #16631 that was released in With my machine configuration, I don't have corepack. However, using yarn @import "tailwindcss" prefix(twp);
+
+@source "./"; The commands I ran: $ yarn
$ yarn workspace vite-bundle run dev
Does the aforementioned change help you at all @Wroud? |
What version of Tailwind CSS are you using?
v4.0.8 / v4.1+
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.1+
What version of Node.js are you using?
v22
What browser are you using?
Chrome latest
What operating system are you using?
macOS
Reproduction URL
https://github.com/Wroud/tailwindcss-yarn-pnp
Describe your issue
I think that this problem is because yarn pnp doesn't use real file system paths, insted it will be something like:
@source
also doesn't work (before v4.1 version it's possible to use absolute paths, but they also not work after v4.1)this setup works well on 4.0.7 version and broken after 88b762b#diff-00d01a2d38f5f4253651cf9811eab1182c96f0307e78c567b803416e24b98165
The text was updated successfully, but these errors were encountered: