nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 68 forks source link

Cannot find module 'tailwind-variants' or its corresponding type declarations. #151

Closed J4v4Scr1pt closed 10 months ago

J4v4Scr1pt commented 10 months ago

Anyone got this error recently?

Just updated to 0.1.20 this appeard: image

I can resolve it by pointing to /dist: image

But that fails my build:

[commonjs--resolver] Missing "./dist" specifier in "tailwind-variants" package
error during build:
Error: Missing "./dist" specifier in "tailwind-variants" package

What to do here?! 🤷‍♀️

mskelton commented 10 months ago

@J4v4Scr1pt Can you create a reproduction code sandbox? This is something I'm not able to reproduce.

J4v4Scr1pt commented 10 months ago

Hi man!

I tried to create a sandbox but as same as you.. cant reproduce it.. 🤔.

I have locally deleted npm_packages and resinstalled. downgraded tailwind variants to lower versions. But still same issue, have a nother project and that works. don't know what do do 😅.

mskelton commented 10 months ago

Hard to say without the specific details of your project. Could be with your TypeScript or bundler config, or with your package manager settings.

I'm going to close this issue since it's not reproducable, but happy to continue the conversation.