Skip to content

Conversation

@Ti-webdev
Copy link

@Ti-webdev Ti-webdev commented Nov 10, 2025

πŸ”— Linked issue

tailwindlabs/tailwindcss#18555
nuxt/nuxt#32575

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Fixed alias resolution order for #tailwindcss and #tailwindcss/sources.

Problem:
When importing #tailwindcss/sources, some module resolvers (like Vite) would try to resolve it as <path-to-#tailwindcss>/sources instead of using the dedicated alias, resulting in errors like:

ENOTDIR: not a directory, open '/path/to/main.css/sources'

Solution:
Reordered alias definitions to register the more specific #tailwindcss/sources before the generic #tailwindcss alias. This ensures that the resolver matches the full path first before attempting substring matches.

Changes:

  • Swapped the order of alias registration in src/import-css.ts

@netlify
Copy link

netlify bot commented Nov 10, 2025

πŸ‘· Deploy request for nuxt-tailwindcss pending review.

Visit the deploys page to approve it

Name Link
πŸ”¨ Latest commit 555edd9

@what-the-diff
Copy link

what-the-diff bot commented Nov 10, 2025

PR Summary

  • Consistency Update for Tailwind CSS Alias Definition
    The alias definition for Tailwind CSS, a utility-first CSS framework for rapidly building custom user interfaces, has been updated for consistent use. Specifically, the modified version of the Tailwind CSS/sources alias is now properly assigned to the file, ensuring a streamlined process and eliminating confusion in potential definition overlaps.

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 this pull request may close these issues.

1 participant