iosreactjsreact-nativeexponpm-run

How to fix react-native error after updating expo to 50.0


When I run npm run ios in terminal, I get the below error

error: node_modules/expo-router/entry.js: [BABEL]: expo-router/babel is deprecated in favor of babel-preset-expo in SDK 50

I tried to install babel-preset-expo, but it was already installed


Solution

  • Removed the expo-router/babel from babel.config.js file and it works.