Replies: 3 comments
-
|
Hey! The typography plugin has a peer dependency on the
After that everything should work. The issue is happening because using npx without installing Tailwind is just executing it without actually adding it to the project, so while it works great in isolation, the library isn't in node_modules for anything else that depends on it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Yeah this seems like a configuration thing unfortunately, I'm not super familiar with Nuxt but I know they recommend using their https://tailwindcss.nuxtjs.org/ Going to move this to discussions since as far as I can tell there's nothing for us to do on our end here, and probably just need to tweak the config to get it working the way you need. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
2.2.4
What build tool (or framework if it abstracts the build tool) are you using?
Tailwind CLI, Nuxt 2.15.7
What version of Node.js are you using?
14.15.3
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://github.com/mbrodt/tailwind-plugin-issue
Describe your issue
Hey,
I'm using the Tailwind CLI to generate classes with JIT mode in a Nuxt project. With this setup, I'm unable to install and use the official Tailwind plugins (typography, aspect-ratio etc.). I'm getting the following error when adding the @tailwindcss/typography to my plugins array in tailwind.config.js:
A minimal reproduction is attached, with a barebones create-nuxt-app (WITHOUT using the @nuxt/tailwind module)
Note: I'm not using the official @nuxt/tailwindcss module as it has other issues related to HMR and JIT, and using the CLI to generate the styles has been working great up until I needed to add a plugin.
Thanks for the help, and let me know if you need more details.
Beta Was this translation helpful? Give feedback.
All reactions