I used react-native init and have reached a good point with my app, but now it's giving me serious issues with babel out of nowhere.
I got Unexpected use of reserved word 'import' went through steps:
1. clear watchman watches.
2. re-yarn all node modules
3. reset Metro Bundler Cache
4. Remove haste cache.
I've also deleted my .babelrc file because RN supposedly bundles the correct babel settings.
On Android emulator i get unable to resolve module babel-polyfill.
On Xcode / Simulator i also get unable to resolve module babel-polyfill from project's index.js
At my wit's end here. Tried uninstalling various incarnations of babel.
Versions: RN v0.55.4
i still have pkg json dev dependency of:
"metro-react-native-babel-preset": "^0.50.0"
but i think thats default wrapped in RN so kind of moot.
What am i missing and is there a sane way of setting Babel for RN projects?
babel-polyfillin your dependencies? and installed in yournode_modules? - h1b9b