tailwindlabs / tailwindcss-custom-forms

A better base for styling form elements with Tailwind CSS.
https://tailwindcss-custom-forms.netlify.app/
MIT License
1.55k stars 72 forks source link

Could not find a declaration file for module '@tailwindcss/custom-forms' #90

Closed instanetk closed 4 years ago

instanetk commented 4 years ago

Followed the install instructions

npm install @tailwindcss/custom-forms --save-dev

Then required the plugin in tailwind.config.js

// tailwind.config.js

module.exports = { // ... plugins: [ require('@tailwindcss/custom-forms'), ] }

But when mousing over the @tailwindcss/custom-forms the following message is displayed:

module "/Users/user/Desktop/Index/git/project/react/node_modules/@tailwindcss/custom-forms/src/index" Could not find a declaration file for module '@tailwindcss/custom-forms'. '/Users/user/Desktop/Index/git/project/react/node_modules/@tailwindcss/custom-forms/src/index.js' implicitly has an 'any' type. Trynpm install @types/tailwindcss__custom-formsif it exists or add a new declaration (.d.ts) file containingdeclare module '@tailwindcss/custom-forms';ts(7016)

I've done a few searches and attempted to install as npm install @types/tailwindcss/custom-forms --save-dev

But no joy...

instanetk commented 4 years ago

Tool me a while to figure out this project is not compatible with Tailwind 2.0.

https://blog.tailwindcss.com/tailwindcss-v2#utility-friendly-form-styles