Skip to content
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

[V4] new import style doesn't work for node_modules in non-standard location (e.g. gradle) #15847

Closed
reubenfirmin opened this issue Jan 25, 2025 · 1 comment · Fixed by #16274
Assignees

Comments

@reubenfirmin
Copy link

reubenfirmin commented Jan 25, 2025

What version of Tailwind CSS are you using?

v4.0.0

What build tool (or framework if it abstracts the build tool) are you using?

Gradle, but I've got a reproducible CLI example attached

What version of Node.js are you using?

For example: v9.2.0

What browser are you using?

N/A

What operating system are you using?

Linux

Reproduction URL

https://github.com/reubenfirmin/tailwindv4-import-bug/

Describe your issue

Tailwind v4 style imports do not work when the paths are in non-standard locations for the cli. Tailwind v3 worked fine with this setup.

This folder structure is typical of gradle projects; the input css would likely be in some resources folder, and the node_modules is managed under build/js. The repo above demonstrates the issue.

@philipp-spiess
Copy link
Member

Hey! Appreciate the bug report. I just pushed a fix of this into the main branch that will be out in the next patch release later this week. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants