Skip to content

In React: Could not find a declaration file for module '@tailwindcss/forms' #18

Closed
@instanetk

Description

@instanetk

Followed the install instructions

npm install @tailwindcss/forms

Then required the plugin in tailwind.config.js

// tailwind.config.js

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

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

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

So far no joy...

PS: I was previously using custom-forms with the same error. Opened an issue with the same content under that project. Sorry if it is cross posting but I am experiencing the same issue with both packages...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions