We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using TypeScript with moduleResolution "node16" or "nodenext", importing clsx and using it:
import clsx from 'clsx'; clsx('a', 'b', 'c');
produces the following error:
src/index.tsx(3,0): error TS2349: This expression is not callable. Type 'typeof import("/node_modules/clsx/clsx")' has no call signatures.
It appears the problem is with the way typings are shipped with this library. Please read: microsoft/TypeScript#49189 (comment)
The thread also mentions the same problem with classnames package, but it appears that they have dealt with it since then.
The text was updated successfully, but these errors were encountered:
Would have been fixed by #57
Sorry, something went wrong.
Closed by #57
No branches or pull requests
When using TypeScript with moduleResolution "node16" or "nodenext", importing clsx and using it:
produces the following error:
It appears the problem is with the way typings are shipped with this library. Please read:
microsoft/TypeScript#49189 (comment)
The thread also mentions the same problem with classnames package, but it appears that they have dealt with it since then.
The text was updated successfully, but these errors were encountered: