-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Defining vite config using @tamagui/config - ts errors #2481
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
I tried using the simplest config following docs for intro/installation and vite guide by using:
import { config } from "@tamagui/config/v3"
I get typescript errors in
vite.config.ts
:ts error for
config
inconst tamaguiConfig = tamaguiExtractPlugin(config)
:ts error for
tamaguiConfig.options
intamaguiPlugin(tamaguiConfig.options)
:or
ts error for
config
in:Everything works fine though, it loads in browser without errors.
Expected Behavior
There should be a way to configure vite config without adding custom
tamagui.config.ts
to root by using only@tamagui/config/v3
, without getting typescript errors.In other words, this:
or this:
const tamaguiConfig = tamaguiExtractPlugin(config)
should be without typescript errors when using "@tamagui/config/v3"` only.
Tamagui Version
Platform (Web, iOS, Android)
Reproduction
vite.config.ts
:The text was updated successfully, but these errors were encountered: