can't find module tailwindcss
after i installed the
@nuxt/ui
module, i tried to import some types from tailwindcss like this import type {Config} from 'tailwindcss'
, but it didn't work, so tailwindcss
is apparently missing and i'm not sure if i should install tailwindcss again to use the types. don't know what i'm missing here4 Replies
If I remember correctly, try removing tailwind package and replace it with tailwind nuxt module?
i didn't install
tailwindcss
in the first placeSorry. I mistake the stuff on Nuxt UI.
Just the confirm, do you have
tailwindcss
module for Nuxt?
If so, you'll need to remove it.
You should remove them from your modules and dependencies if you've previously installed them.
https://ui.nuxt.com/getting-started/installation#modulesthat is because underlying dependencies are not hoisted to your project's level. You could install it as a dev dependency and only import the types, the build will not add Tailwind twice anyway.
Or, you could add this line in your
.npmrc
And reinstall dependencies