Open mrishan1993 opened 5 years ago
+1
+1
remove .babelrc, create the file babel.config
with the code below, then npm install
on root, then remove the build folder on ios/, and try build again.
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
};
remove .babelrc, create the file
babel.config
with the code below, thennpm install
on root, then remove the build folder on ios/, and try build again.module.exports = { presets: ['module:metro-react-native-babel-preset'], };
After doing this I am getting the following error
error: index.js: [BABEL] D:\project\index.js: Cannot find module '@babel/helper-builder-binary-assignment-operator-visitor'
I upgraded RN to 0.59 and installed metro-react-native-babel-preset latest version. While running react-native run-android, I get the error "Cannot find module babel-preset-react-native". I also changed the config file .babelrc
Package.json
.babelrc
{ "presets": ["module:metro-react-native-babel-preset"] }