Skip to content

TypeError: require(...) is not a function #802

@julienallexandre

Description

@julienallexandre

Hello 🖐,

There is a problem in the documentation with the use of variant customisation which causes an error during compilation.

It says to add the plugin with:
require('tailwindcss-interaction-variants')(),
but you have to remove the () at the end so that it gives
require('tailwindcss-interaction-variants'),

https://tailwindcss.com/docs/configuring-variants#using-custom-variants

tailwindcss-interaction-variant

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