You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring a new app with Tamagui, components/Button.tsx does not compile when running tsc --noEmit
Expected Behavior
No compilation errors.
Current Behavior
I get these compilation errors
components/Button.tsx:3:10 - error TS2614: Module '"../tamagui.config"' has no exported member 'Button'. Did you mean to use 'import Button from "../tamagui.config"' instead?
3 import { Button as TButton, ButtonText } from '../tamagui.config';
~~~~~~
components/Button.tsx:3:29 - error TS2614: Module '"../tamagui.config"' has no exported member 'ButtonText'. Did you mean to use 'import ButtonText from "../tamagui.config"' instead?
3 import { Button as TButton, ButtonText } from '../tamagui.config';
~~~~~~~~~~
components/Button.tsx:5:34 - error TS2304: Cannot find name 'TouchableOpacity'.
5 export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ onPress, title }, ref) => {
~~~~~~~~~~~~~~~~
components/Button.tsx:5:52 - error TS2304: Cannot find name 'ButtonProps'.
5 export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ onPress, title }, ref) => {
When configuring a new app with Tamagui,
components/Button.tsx
does not compile when runningtsc --noEmit
Expected Behavior
No compilation errors.
Current Behavior
I get these compilation errors
Possible Solution
Implement
Button
andButtonText
intamagui.config
Steps to Reproduce
Generate a new app using typescript and tamagui.
Repo which reproduces this bug: https://github.com/Mellbourn/expo-stack
The text was updated successfully, but these errors were encountered: