@babel/parser error after upgrading from sdk 44 to 45

Please provide the following:

  1. SDK Version: 45
  2. Platforms(Android/iOS/web/all):

Im getting the error below after upgrading from expo sdk 44 to sdk 45.

error An unexpected error occurred: “could not find a copy of @babel/parser to link in ///node_modules/metro-react-native-babel-preset/node_modules/@babel/core/node_modules”

Kindly assist, Ive already tried options from the internet but were not helpful for my situation.

Hi @lindani540

Try running expo-cli doctor and paste the output here, please?

And please also paste the dependencies and devDependencies sections from package.json.


Seems like something else must have been wrong with the project, Because after deleting the node-modules and yarn.lock file a couple of times, I was eventually able to get it to work. Im currently going through all the individual packages we have installed in the app, and there seems to a few deprecated, so Im assuming they are the ones causing this unexpected behaviour. Its all good now but thank you for the assistance.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.