Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 506
Elvin Shahsuvarli Avatar asked Dec 20 '25 00:12

Elvin Shahsuvarli


1 Answers

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

like image 157
Elvin Shahsuvarli Avatar answered Dec 22 '25 15:12

Elvin Shahsuvarli