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

Error ERROR Pre-transform error: Failed to resolve import "#tailwind-config/theme/colors" #1854

Closed
arinzejustin opened this issue Jun 10, 2024 · 4 comments
Labels
needs reproduction question Further information is requested

Comments

@arinzejustin
Copy link

Description

ERROR Pre-transform error: Failed to resolve import "#tailwind-config/theme/colors" from "node_modules/@nuxt/ui/dist/runtime/plugins/colors.mjs?v=309adce5". Does the file exist?

@arinzejustin arinzejustin added the question Further information is requested label Jun 10, 2024
@arinzejustin arinzejustin changed the title Error Error ERROR Pre-transform error: Failed to resolve import "#tailwind-config/theme/colors" Jun 10, 2024
Copy link
Member

Would you mind providing a reproduction?

@urbgimtam
Copy link

urbgimtam commented Jun 11, 2024

Having the same error today. While building a reproduction, I've realized that in nuxt.config.ts, if "nuxtjs/tailwindcss" is present in modules, the error appears. Removing it from modules removes the error.

This is also exposed on the docs. https://ui.nuxt.com/getting-started/installation#modules

@arinzejustin
Copy link
Author

Having the same error today. While building a reproduction, I've realized that in nuxt.config.ts, if "nuxtjs/tailwindcss" is present in modules, the error appears. Removing it from modules removes the error.

This is also exposed on the docs. https://ui.nuxt.com/getting-started/installation#modules

Yes figured it out that today
Thanks for your response
Please I'm new to using this ui. Have be trying to add a custom css tailwindcss class to the UInput like for example ui="py-4" but is not working

Copy link
Member

@arinzejustin The UInput component has a relative div wrapper to handle icons, if you want to target the input directly you can use the input-class prop or :ui="{ base: 'py-4' }" for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants