lukeed / clsx

A tiny (239B) utility for constructing `className` strings conditionally.
MIT License
8.08k stars 141 forks source link

clsx is not a function #62

Closed FOSSgeek closed 1 year ago

FOSSgeek commented 1 year ago

im building my library and i get this error 'clsx is not a function' i tried to fix it on all ways but no luck, the folder for build is : https://github.com/FOSSgeek/Excelente/tree/main/packages/components/button

note to build run npm build, and the rollup.config.js is the same but in line 14 i change esm to cjs on my local pc

FOSSgeek commented 1 year ago

im getting this error when using the build folder in create-react-app

lukeed commented 1 year ago

this will have to do with build/bundler config. is not a clsx issue