Skip to content

JSDOM support - error when including @tailwindplus/elements #1781

@ajaishankar

Description

@ajaishankar

Describe the bug

When importing @tailwindplus/elements in a JSDOM test, the following error is thrown

import "@tailwindplus/elements";

TypeError: o.show is not a function
  qo ../../node_modules/@tailwindplus/elements/dist/index.js:64:10335

To Reproduce

Create a test that runs in JSDOM and uses tailwindplus elements

Expected behavior

Since tailwindplus is being used in many components, JSDOM should be supported.

Browser/Device (if applicable)

  • OS: MacOS
  • Browser JSDOM

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