Babel Unknown option: .caller Babel Unknown option: .caller reactjs reactjs

Babel Unknown option: .caller


According to RN 0.57 change log you need to:

Ensure that you have all the babel dependencies to version ^7.0.0 (you may also need to add babel-core": "7.0.0-bridge.0" as a yarn resolution to ensure retro-compatibility)

It seems that you have a @babel/core": "7.0.0-beta.42 not ^7.0.0.

Here is a configuration that worked for me in RN 0.57.1 and 0.57.2:https://stackoverflow.com/a/52717426/1979861

Also check the .babelrc file to be according to RN change.log.

At any point if you get some babel error you can try to clean all cache with something like this (using yarn or npm, depending on what you have):

rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf node_modules && yarn install && npm start -- --reset-cache