Failed to resolve import "#tailwind-config"
The Nuxt TailwindCSS module docs state I can use
import tailwindConfig from '#tailwind-config'
. However, I get the following error when trying that: Failed to resolve import "#tailwind-config"
Does anyone have any ideaNuxt Tailwind
Config - Nuxt Tailwind
This module comes with a default Tailwind configuration file to provide the best possible user experience.
2 Replies
Hi @bnason. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I apologize, but I don't have enough information in the provided knowledge sources to directly answer your question about the
#tailwind-config
import error. The documents don't specifically address this particular issue with the Nuxt TailwindCSS module.
However, I can provide some related information that might be helpful:
1. Nuxt uses the nuxt.config.ts
file as the single source of truth for configurations and skips reading external configuration files according to the Nuxt documentation (https://nuxt.com/docs/getting-started/configuration#external-configuration-files).
2. For Tailwind CSS configuration in Nuxt, you typically create a tailwind.config.ts
file in your project root. This file can be written in TypeScript as shown in the Nuxt UI documentation (https://ui.nuxt.com/getting-started/installation#intellisense).
3. If you're experiencing issues with imports or configurations, you might need to check your project's setup, ensure all dependencies are correctly installed, and verify that your nuxt.config.ts
file is properly configured.
If the problem persists, you might want to check for any recent changes in the Nuxt TailwindCSS module documentation or consider reaching out to the Nuxt community forums for more specific assistance with this error.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@712351223482810390> Kapa.ai is still learning and improving, please let me know how I did by reacting below.