未被捕获的TypeError:无法读取属性' major'未定义的

时间:2018-03-16 10:38:19

标签: android react-native updates

我正在开发一个带有原生java和Android的Android应用程序。反应原生。在更新本机和依赖项后,每当开发服务器脚本(本地)加载到设备中时,它就会在典型的红色屏幕中显示以下错误:

com.facebook.react.common.JavascriptException: Uncaught TypeError: Cannot read property 'major' of undefined

loadApplicationScript
WebSocketJavascriptExecutor.java:173

run
NativeRunnable.java

handleCallback
Handler.java:836

我的依赖项列表:(来自package.json)

"dependencies": {
"create-react-class": "^15.6.3",
"lodash": "^4.17.5",
"minutes-seconds-milliseconds": "^1.0.3",
"prop-types": "^15.6.1",
"react": "^16.3.0-alpha.2",
"react-native": "^0.54.2",
"react-native-carousel": "^0.11.0",
"react-native-checkbox": "^2.0.0",
"react-native-code-push": "^5.3.1",
"react-native-communications": "^2.2.1",
"react-native-deprecated-custom-components": "^0.1.2",
"react-native-elements": "^0.19.0",
"react-native-masked-text": "^1.6.5",
"react-native-modal-dropdown": "^0.6.2",
"react-native-modal-picker": "0.0.16",
"react-native-parsed-text": "0.0.20",
"react-native-selectbox": "^0.1.2",
"react-native-simple-radio-button": "^2.7.1",
"react-native-tab-view": "0.0.74",
"react-native-tabbed-view-pager-android": "^1.0.4",
"react-native-vector-icons": "^4.5.0",
"react-redux": "^5.0.7",
"react-timer-mixin": "^0.13.3",
"redux": "^3.6.0"},

 "devDependencies": {
"babel-jest": "22.4.1",
"babel-preset-react-native": "4.0.0",
"babel-polyfill": "^6.26.0",
"jest": "22.4.2",
"react-native-bundle": "0.0.4",
"react-test-renderer": "16.2.0"},

在JS控制台中,它发出以下错误:

 Cannot read property 'major' of undefined
 Failed to print error:  regeneratorRuntime is not defined

0 个答案:

没有答案