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
I get this error when running react-native-git-upgrade:
git-upgrade info Check for updates
git-upgrade info Using yarn 1.7.0
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.56.0, React 16.4.1
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
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 ERR! An error occurred during upgrade:
git-upgrade ERR! Error: Plugin 0 specified in "/path/to/git/myApp/node_modules/babel-preset-react-native/index.js" provided an invalid property of "default" (While processing preset: "/path/to/git/myApp/node_modules/babel-preset-react-native/index.js")
at Plugin.init (/path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/path/to/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
Reproducible Demo
update to 0.56.0-rc.2, then to 0.56.0
The text was updated successfully, but these errors were encountered:
👋 there.
It seems that, as @yurtaev pointed out, your issue is related to babel-preset-react-native. As we point out in the Changelog, we recommend that you use the fixed versions for both the preset and babel.
Moreover, if you have issues with git-upgrade I also suggest that you keep an eye out on the rn-diff repo to make sure you update all the required files accordingly (example, in your info section you still have react 16.3 instead of 16.4).
Generally, if git upgrade fails I always do it manually by following the basic steps in the rndiff repo and then handle flow (if you are using it).
Environment
Description
I get this error when running
react-native-git-upgrade
:Reproducible Demo
update to 0.56.0-rc.2, then to 0.56.0
The text was updated successfully, but these errors were encountered: