React-Native: Failed to load bundle. Cannot read property 'throwlfClosureRequired'

Change the version of "babel-preset-react-native" to "4.0.0". For the lastest version 5.0.0, the issue arises.

  1. Run npm install after the version change. Then start the emulator.
  2. Even then if you face issue, delete your node_modules directory, repeat step 1.
  3. Restart your machine if you see the issue again even after all tries.

Check github issue


I got the above mentioned error just now. I am using React Native v0.57 and my json file had this

 {
  "name": "AwesomeProject",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.5.0",
    "react-native": "0.57.1"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.45.6",
    "react-test-renderer": "16.5.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

I added "babel-preset-react-native": "4.0.0", and removed "metro-react-native-babel-preset": "0.45.6" in the "devDependencies" and the error was resolved.