Skip to content

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

Closed
carlonoelle opened this issue Jul 8, 2023 · 6 comments
Closed

declaration file not found #80

carlonoelle opened this issue Jul 8, 2023 · 6 comments
Labels
bug Something isn't working cant reproduce This bug cannot be reproduced

Comments

@carlonoelle
Copy link

carlonoelle commented Jul 8, 2023

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

image

Here is the error:
image

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):

  • OS: MacOS
@carlonoelle carlonoelle added the bug Something isn't working label Jul 8, 2023
@carlonoelle
Copy link
Author

i figured out that the problem is the moduleresolution setting in the tsconfig. When you are using Node16 or nodenextts cannot find the type declarations.

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?

@carlonoelle
Copy link
Author

Found this handy tool, telling us exactly what issue i am experiencing: https://arethetypeswrong.github.io/?p=tailwind-variants%400.1.10

@carlonoelle
Copy link
Author

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!

@alex-reinfoce
Copy link
Contributor

@carlonoelle Can you provide a mini repo ?

@mskelton
Copy link
Collaborator

@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.

@mskelton mskelton added the cant reproduce This bug cannot be reproduced label Sep 19, 2023
@mskelton
Copy link
Collaborator

Closing as not-reproducable.

@mskelton mskelton closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cant reproduce This bug cannot be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants