Skip to content

fix(utils): correct clsx default import (fixes #19) - #22

Open
Arkrly wants to merge 1 commit into
Riturajkumarsingh:mainfrom
Arkrly:fix/clsx-import-issue-19
Open

fix(utils): correct clsx default import (fixes #19)#22
Arkrly wants to merge 1 commit into
Riturajkumarsingh:mainfrom
Arkrly:fix/clsx-import-issue-19

Conversation

@Arkrly

@Arkrly Arkrly commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

PR: fix(utils): correct clsx default import (fixes #19)

Summary

Fix incorrect named import of clsx in lib/utils.js causing TypeError: clsx is not a function when cn() is used.

Root Cause

clsx is a default export; using a named import returned undefined.

Change

- import { clsx } from "clsx";
- import { twMerge } from "tailwind-merge"
+ import clsx from "clsx";
+ import { twMerge } from "tailwind-merge";

@vercel

vercel Bot commented Aug 20, 2025

Copy link
Copy Markdown

@Arkrly is attempting to deploy a commit to the Rituraj kumar singh 's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] clsx imported incorrectly causing cn() runtime failure

1 participant