现在,我正试图制作一个应用程序,在反应本土和博览会。昨天,我过得很好,但是今天当我开始参加世博会的时候,我犯了这个错误。
TypeError:未定义不是对象(计算'this._callListeners.bind')
我认为这个问题是基于反应-导航,博览会或其他版本。
这是我下面的package.json
"dependencies": {
"@expo/vector-icons": "^9.0.0",
"expo": "^32.0.0",
"expo-cli": "^2.11.9",
"firebase": "^4.12.1",
"mobx": "^5.8.0",
"mobx-react": "^5.4.3",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-native-maps": "^0.23.0",
"react-native-modal": "^7.0.2",
"react-native-vector-icons": "^6.1.0",
"react-navigation": "^3.4.1"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-preset-expo": "^5.0.0",
"babel-preset-mobx": "^2.0.0",
"babel-preset-react-native": "^4.0.1",
"directory": "^0.1.0",
"eslint": "^5.12.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.12.3",
"metro-react-native-babel-preset": "^0.53.0"
},发布于 2019-07-30 05:36:08
在我的应用程序开始无缘无故地显示这个错误之后,我花了几个小时在google上搜索这个问题的解决方案,但没有什么效果。最后,我尝试做expo start -c,因为我记得在世博会v33升级文档中提到过它。我的错误消失了。
https://stackoverflow.com/questions/55205731
复制相似问题