Followed TW CSS Forms Installation Instructions But Not Working. How to fix it? #4106
Unanswered
bluecrunch
asked this question in
Help
Replies: 1 comment 1 reply
-
Hey! Are you able to share your repo to take a look, or try and create a minimal reproduction of this problem? Hard to tell without looking at that. You mention you required the forms plugin from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using Tailwind CSS and wanted to add TW CSS Forms. So to do this I followed the instructions. But I get no result (especially when working with Selects).
What I did
npm install @tailwindcss/forms
I added
require('@tailwindcss/forms'),
to tailwind.config.jsBut no result. I still have the default select appearance from my browser or an arrow-less version when removing appearance.
I already checked Purge in the Config and this is empty.
So I looked at an underlining of VSC3 in the plugin-array and it says:
module "/Users/itsme/Documents/GitHub/gs_tw/node_modules/@tailwindcss/forms/src/index" Could not find a declaration file for module '@tailwindcss/forms'. '/Users/itsme/Documents/GitHub/gs_tw/node_modules/@tailwindcss/forms/src/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/tailwindcss__forms if it exists or add a new declaration (.d.ts) file containing declare module @tailwindcss/forms;ts(7016)
I looked at my node-modules and found the folder '@tailwindcss/forms' and the index.js in the required src-folder. I assume it is an issue with the naming of the folders. How should I approach it without breaking anything?
My versions are
And I use it with
"react": "^17.0.2",
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions