You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to upgrade my react project to the latest version, the react-native-git-upgrade crashes with an error.
I am attempting to upgrade a project created with CRNA -> Ejected in the version RN 0.55.x
react-native-git-upgrade
git-upgrade info Check for updates
git-upgrade info Read package.json files
git-upgrade info Check declared version
git-upgrade info Check matching versions
git-upgrade info Check React peer dependency
git-upgrade info Check that Git is installed
git-upgrade info Get information from NPM registry
git-upgrade info Upgrading to React Native 0.57.4, React 16.6.0-alpha.8af6728
git-upgrade info Setup temporary working directory
git-upgrade info Configure Git environment
git-upgrade info Init Git repository
git-upgrade info Add all files to commit
warning: CRLF will be replaced by LF in android/gradlew.bat.
The file will have its original line endings in your working directory.
git-upgrade info Commit current project sources
git-upgrade info Create a tag before updating sources
git-upgrade info Generate old version template
git-upgrade info Add updated files to commit
warning: CRLF will be replaced by LF in android/gradlew.bat.
The file will have its original line endings in your working directory.
git-upgrade info Commit old version template
git-upgrade info Install the new version
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
git-upgrade info Generate new version template
git-upgrade ERR! An error occurred during upgrade:
git-upgrade ERR! Error: Couldn't find preset "module:metro-react-native-babel-preset" relative to directory "MY_APP_PATH"
at /Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at compile (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-register/lib/node.js:103:45)
at loader (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-register/lib/node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (/Users/v.reis/.nvm/versions/node/v8.9.0/lib/node_modules/react-native-git-upgrade/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:554:32)
git-upgrade ERR! Restore initial sources
Can someone offer guidance in how to upgrade the project in this condition?
react-native-git-upgrade is now deprecated. Please use automatic react-native upgrade if you're on 0.59+ or manual rn-diff-purge which upgrade uses under the hood
Environment
Description
When I attempt to upgrade my react project to the latest version, the
react-native-git-upgrade
crashes with an error.I am attempting to upgrade a project created with CRNA -> Ejected in the version RN 0.55.x
Can someone offer guidance in how to upgrade the project in this condition?
how to reproduce
For example try to upgrade this project: https://github.com/vitorreis/react-native-braze-sdk-app
The text was updated successfully, but these errors were encountered: