Skip to content

Problem with VariantProps ? #288

Closed Answered by McPixeI
McPixeI asked this question in Q&A
Apr 29, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Ok it was a problem with moduleResolution in tsconfig file.

If you put moduleResolution to "Bundler" and execute "yarn build", the generated type definition file (xxx.d.ts) has the correct path for "ClassProp" from "cva", but not the consumer projects.

If you put moduleResolution to "node", you will see the ClassProp import path generated on dist/xxx.d.ts to change and give error on the library project, but not on the consumer projects.

Hope this helps to anyone who is facing the same problmem.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dxptqhtlutehvlyxcmtg
Comment options

@DaveKeehl
Comment options

Answer selected by McPixeI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants