Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-git-upgrade gives an error #20407

Closed
ghost opened this issue Jul 26, 2018 · 2 comments
Closed

react-native-git-upgrade gives an error #20407

ghost opened this issue Jul 26, 2018 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@ghost
Copy link

ghost commented Jul 26, 2018

After upgrading RN version to 0.56.0 running of command react-native-git-upgrade (instead of react-native upgrade) gives this error:

git-upgrade ERR! Error: Plugin 0 specified in "/home/misha/Work/neaktor_tablet/node_modules/babel-preset-react-native/index.js" provided an invalid property of "default" (While processing preset: "/home/misha/Work/neaktor_tablet/node_modules/babel-preset-react-native/index.js")
    at Plugin.init (/usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/plugin.js:131:13)
    at Function.normalisePlugin (/usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
    at /usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at /usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
    at /usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (/usr/lib/node_modules/react-native-git-upgrade/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20) 
git-upgrade ERR! Restore initial sources 

Command react-native upgrade works without errors.

My package.json

{
  "name": "appName",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "base-64": "^0.1.0",
    "moment": "^2.22.1",
    "pouchdb-adapter-asyncstorage": "^6.4.1",
    "pouchdb-react-native": "^6.4.1",
    "react": "^16.4.1",
    "react-native": "0.56.0",
    "react-native-button": "^2.3.0",
    "react-native-cheerio": "^1.0.0-rc.4",
    "react-native-device-info": "^0.22.0",
    "react-native-document-picker": "^2.1.0",
    "react-native-dropdown-menu": "^2.0.0",
    "react-native-elements": "^0.19.1",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-file-picker": "0.0.11",
    "react-native-file-viewer": "^1.0.5",
    "react-native-fs": "^2.9.12",
    "react-native-gifted-chat": "^0.4.3",
    "react-native-html-parser": "0.0.5",
    "react-native-image-picker": "^0.26.10",
    "react-native-infinite-scroll": "^1.0.6",
    "react-native-keyboard-aware-scroll-view": "^0.5.0",
    "react-native-modal": "^6.1.0",
    "react-native-modal-dropdown": "^0.6.2",
    "react-native-permissions": "^1.1.1",
    "react-native-prompt": "^1.0.0",
    "react-native-router-flux": "^4.0.0-beta.31",
    "react-native-secure-storage": "^0.1.1",
    "react-native-simple-events": "^1.0.1",
    "react-native-vector-icons": "4.6.0",
    "react-redux": "^5.0.7",
    "redux": "^4.0.0",
    "url": "^0.11.0",
    "xmlhttprequest": "^1.8.0"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0-beta.54",
    "babel-jest": "22.4.3",
    "babel-preset-react-native": "^5.0.0",
    "del": "^3.0.0",
    "gulp": "^3.9.1",
    "gulp-clean": "^0.4.0",
    "gulp-param": "^1.0.3",
    "jest": "22.4.3",
    "react-test-renderer": "16.3.1"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "./assets/fonts/"
    ]
  }
}

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Jul 26, 2018
@harrydema
Copy link

Were you able to solve it?

@facebook facebook locked as resolved and limited conversation to collaborators Jul 26, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants