ivopr / tamagui-expo

An Expo template with Tamagui
270 stars 22 forks source link

File 'expo/tsconfig.base' not found #12

Closed jkohlin closed 1 year ago

jkohlin commented 1 year ago

Hi. I just installed tamagui by following the instructions in the readme but got this error in the tsconfig.json. I'm new to typescript and not sure what to do. Any help?

ivopr commented 1 year ago

@jkohlin hey, you probably need to run yarn install, this file is included on the expo package, If you already ran yarn install try reopening the project in your ide

jkohlin commented 1 year ago

Well, I started by running npx create-expo-app sni -t tamagui-expo-template --no-install followed by cd sni and yarn install. the error above was fixed by adding .json to "extends": "expo/tsconfig.base" but When I run yarn start I get this:

Some dependencies are incompatible with the installed expo version:
  expo-dev-client@2.0.0 - expected version: ~2.0.1
  react@18.2.0 - expected version: 18.1.0
  react-dom@18.2.0 - expected version: 18.1.0
  react-native-reanimated@2.13.0 - expected version: ~2.12.0
Your project may not work correctly until you install the correct versions of the packages.

and my screen shows this: image so I try running expo-cli doctor --fix-dependencies but still the same error. Any clues?

ivopr commented 1 year ago

try adding

"resolutions": {
"react": "18.2.0",
"react-dom": "18.2.0
}

to your package json, tamagui needs React 18.2, and running expo doctor enforces 18.1

jkohlin commented 1 year ago

that worked! thanks. Now it's just a warning: warning: matchMedia implementation is not provided. image

ivopr commented 1 year ago

you can ignore this for now. not sure why it is happening, will try to find next week when vacation starts

ivopr commented 1 year ago

forgot to mention in the commit, but added the .json to it. If needed, please reopen.