React Native starter project bundling fails with Unexpected Token error

Try deleting the .babelrc file in the root directory. Or rename it. Then re-run the "react-native run-android" command. This worked for me. Good luck.


I got the same thing, it looks like the latest version of the babel preset for react native has some bugs (version 3.0.0). I went into my package.json and replaced the latest version with this:

"babel-preset-react-native": "2.1.0".

then I deleted the node_modules directory and ran npm install and it worked.


Install [email protected] and run the project.

In the current project, do this...

yarn remove babel-preset-react-native
yarn add [email protected]

This worked for me, I hope it will for you too.

You can find more information about the error here https://github.com/facebook/react-native/issues/15513#issuecomment-322824346