-
Notifications
You must be signed in to change notification settings - Fork 76
declaration file not found #80
New issue
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
Comments
i figured out that the problem is the moduleresolution setting in the tsconfig. When you are using I have found this Typescript Issue here explaining the issue: microsoft/TypeScript#49160 But i must say i cannot find a way to correct it myself after a couple minutes of trying. Is there a package maker typescript magician around? |
Found this handy tool, telling us exactly what issue i am experiencing: https://arethetypeswrong.github.io/?p=tailwind-variants%400.1.10 |
Ok last link: https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/InternalResolutionError.md explains the problem, but i cannot get it working. Since i unfortunately need node16 resolution i will switch to cva for now, if someone could help me out here it would be much appreciated! |
@carlonoelle Can you provide a mini repo ? |
@carlonoelle Please try updating to the latest version of tailwind-variants and typescript and see if the problem persists. Also, a reproduction code sandbox would help a lot. |
Closing as not-reproducable. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Simply installed the package, and immediatly ts server tells me it cannot find the declaration file or the module. Using it in a NextJs project with the following tsconfig:
EDIT: installed tailwind-variant at version
^0.1.10
Here is the error:

NextJS Version is 13.4.9, but since its TS related i don't think thats the problem.
Expected behavior
Typings just working without research.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: