Skip to content

@tailwindcss/cli@4.1.0 misses jiti dependency #17501

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

Closed
JonnyBurger opened this issue Apr 2, 2025 · 2 comments · Fixed by #17502
Closed

@tailwindcss/cli@4.1.0 misses jiti dependency #17501

JonnyBurger opened this issue Apr 2, 2025 · 2 comments · Fixed by #17502

Comments

@JonnyBurger
Copy link

https://unpkg.com/@tailwindcss/cli@4.1.0/dist/index.mjs contains

import{createJiti as Xl}from"jiti"

However, jiti is not in dependencies of @tailwindcss/cli:

  "dependencies": {
    "@parcel/watcher": "^2.5.1",
    "enhanced-resolve": "^5.18.1",
    "mri": "^1.2.0",
    "picocolors": "^1.1.1",
    "@tailwindcss/node": "4.1.0",
    "@tailwindcss/oxide": "4.1.0",
    "tailwindcss": "4.1.0"
  },

Granted, @tailwindcss/node does have jiti as a dependency.
But my monorepo does have a different version of jiti which is on version 1.x, which means the unintended version was resolved.

My suggestion is to add it as an explicit dependency and pin the version for robustness.

@philipp-spiess
Copy link
Member

Thanks for the report! We pushed a new patch release that fixes this now.

@JonnyBurger
Copy link
Author

Thanks for the lightning fast fix!

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