error: bundling failed: TypeError: Cannot read property 'throwIfClosureRequired' of undefined

Got this error after react-native start command.

Approach:

Modify the package.json file in the project directory

把"babel-preset-react-native": "5.0.0" 改成 "babel-preset-react-native": "4.0.0" 

Then

Then run npm install.


For more information refer to:

https://github.com/facebook/react-native/issues/18962


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324648196&siteId=291194637