Cannot find module 'clsx/lite' or its corresponding type declarations
stesvis opened 路
I am unable to use `clsx/lite`.
```json // package.json "clsx": "^2.1.0" ```
```js // MyComponent import { clsx } from "clsx/lite"; ```
Error: > Cannot find module 'clsx/lite' or its corresponding type declarations.
What am i missing?
- DR
wanna change from cnbuilder to "clsx/lite"... same problem?!

- DR
ah ok... typescript moduleResolution "bundler"is a new magic (?) :-)
https://www.typescriptlang.org/tsconfig#moduleResolution
see also: https://github.com/lukeed/clsx/issues/89
droid51referenced this in Lite Version: Improve Typescript Definition and Support for "moduleResolution": "Node" #942 years ago on GitHub
- ID
for me, just change moduleResolution in tsconfig.json fix.
change moduleResolution: 'node' to moduleResolution: 'nodenext'
DakshSinghDhamireferenced this in feat: add dedicated type declarations for clsx/lite #1264 months ago on GitHub
3ni8mareferenced this in fix: add typesVersions fallback for clsx/lite (fixes #92) #1272 months ago on GitHub