はじめに
ゆとり世代の中野です。
さっそくチャレンジについて書いていきます。
チャレンジする背景
- 現在のv45のためできるだけ最新のv47に近づけるため
チャレンジ内容
- とりあえずv46が動くようにする
やったこと
- アップグレードする
npx expo upgrade
‣
✔ It looks like you're trying to use TypeScript but don't have the required dependencies installed. Would you like to install @types/react? … yes
✔ Installed @types/react@~18.0.0
It looks like you're trying to use TypeScript but don't have the required dependencies installed.
Please install @types/react by running:
yarn add --dev @types/react@~18.0.0
If you're not using TypeScript, please remove the TypeScript files from your project and delete the tsconfig.json.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- 実際にpackage.jsonを確認してみると入ってた
"@types/react": "~18.0.0",
- .env(環境変数)に以下を追加すれば解決する
EXPO_NO_TYPESCRIPT_SETUP=1
結論
- issueに解決方法が書いてあったのでその通りに対応して完了
さいごに
- 大きな影響受けることなく無事v46にupdateできました
yutanakano
WEBエンジニア
大阪生まれのゆとり世代です
趣味はバイクでツーリングに行くこと
愛車は Ninja ZX-25R SE KRT EDITION
Expoでプロダクトを作っています