Skip to content

fix(nativewind-utils): correct TVConfig import #2871

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Flyrell
Copy link

@Flyrell Flyrell commented May 30, 2025

Hey, just encountered that in my application, wanted to add a CI job that checks "type-correctness" via tsc --noEmit and turns out there's an import in the lib, that makes this impossible if you use tva (which I am). Hope this helps, thanks.

Fixes the following:

./node_modules/.bin/tsc --noEmit
node_modules/@gluestack-ui/nativewind-utils/tva/index.ts:2:31 - error TS2307: Cannot find module 'tailwind-variants/dist/config' or its corresponding type declarations.

2 import type { TVConfig } from 'tailwind-variants/dist/config';
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Happens on:

"expo": "53.0.9"
"typescript": "5.8.3"
"@gluestack-ui/nativewind-utils": "1.0.26"

@Flyrell
Copy link
Author

Flyrell commented May 30, 2025

Another way would be to just put @ts-ignore there, but this seemed a bit better.

@Sanchitv3
Copy link
Collaborator

Thanks for reporting! The fix has been made — the update will be live soon. 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants