skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

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


  2. Removed the expo-router/babel from babel.config.js and re-run your expo app/server, clearing your cache with:

    npx expo start --clear
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search