react-native problem in 2017.3: error: unknown option `--no-packager'
After downloading 2017.3 and running one of my existing react-native configurations, I get the following error, which I didn't get before:
/Users/cmarstall/.nvm/versions/node/v7.2.0/bin/node /usr/local/lib/node_modules/react-native-cli run-android --no-packager
error: unknown option `--no-packager'
I googled for that flag, and looked for it in my node_modules/react-native/local-cli/ tree. It doesn't seem to really exist.
Nor do I see a way to get rid of it. I already specify command line arguments in the configuration ("--scheme Debug") so I presume that would override any default arguments - but it doesn't. Anyway this is blocking me from debugging, please help!
Please sign in to leave a comment.
what is your project react-native version?
0.40. here's my package.json:
"dependencies": {"babel": "^6.23.0",
"intl": "^1.2.5",
"lodash": "^4.2.1",
"moment": "^2.19.1",
"prop-types": "^15.5.10",
"querystring": "^0.2.0",
"react": "15.4.2",
"react-intl": "^2.3.0",
"react-native": "0.40.0",
"react-native-animatable": "^0.6.1",
"react-native-code-push": "latest",
"react-native-device-info": "^0.9.5",
"react-native-fabric": "^0.4.1",
"react-native-firebase-analytics": "^3.0.0",
"react-native-keychain": "git://github.com/oblador/react-native-keychain.git#33d1816",
"react-native-radio-buttons": "^0.14.0",
"react-native-slider": "0.9.1",
"react-native-spinkit": "latest",
"react-native-tableview-simple": "^0.13.0",
"react-redux": "^4.4.5",
"react-timer-mixin": "^0.13.3",
"redux": "^3.5.2",
"redux-logger": "^2.6.1",
"redux-thunk": "^2.1.0",
"reselect": "^2.5.3"
},
seems the option is only available since 0.42. see https://github.com/facebook/react-native/blob/master/local-cli/runAndroid/runAndroid.js:
}
Any way to get WebStorm to stop using it? Or do I need to upgrade? (big job)
I've logged https://youtrack.jetbrains.com/issue/WEB-29966 to check react-native project version when starting run command to avoid using `--no-packager` with old versions.
For now, upgrading project react-native seems to be the only option:(