A tiny (239B) utility for constructing `className` strings conditionally.
8.21k
stars
142
forks
source link
"This expression is not callable." error when using TypeScript with moduleResolution "node16" or "nodenext" #75
Closed
wojtekmaj closed 1 year ago
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: https://github.com/microsoft/TypeScript/issues/49189#issuecomment-1137756847
The thread also mentions the same problem with classnames package, but it appears that they have dealt with it since then.