Closed AnnsAnns closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
tailwindcss-forms | ✅ Ready (Inspect) | Visit Preview | Dec 8, 2022 at 3:44PM (UTC) |
@tumGER Hey! So this doesn't sound right — you can definitely install the @tailwindcss/forms
plugin as a dev dependency if you want. Where are you seeing this warning?
Hey! Going to close this PR since I haven't heard back from you, and because it's definitely possible to install the @tailwindcss/forms
plugin as a dev dependency. Would still love to know where you saw this warning though — so feel free to still leave that as a comment 👍
Hey, sorry for not responding.
I'm getting this error/warning: '@tailwindcss/forms' should be listed in the project's dependencies, not devDependencies
when including it in the plugins under tailwind.config.cjs.
plugins: [
// eslint-disable-next-line global-require
require('@headlessui/tailwindcss'),
// eslint-disable-next-line global-require
require('@tailwindcss/forms'), // <- Error Line
]
@tumGER Hey! So we're definitely not the ones throwing this error — it appears to be an eslint warning. You can update your eslint configuration to hide this. See here for more information:
Hope that helps 👍
TailwindCSS warns you that you shouldn't install tailwindcss-forms as a dev dependency when trying to add it to your tailwind config.
This simple MR simply removes the
-D
flag from the install command within the readme to not confuse people installing it as a dev dependency by accident.