未定义不是对象(评估“ viewConfig.Manager”)

时间:2019-09-27 12:39:45

标签: react-native expo

我正在尝试将expo sdk从版本33升级到34,并且未定义不是react-native包中的一个对象(评估“ viewConfig.Manager”)

package.json

"date-fns": "^2.0.1",
    "eslint-plugin-react-hooks": "^1.7.0",
    "expo": "^34.0.1",
    "expo-analytics-amplitude": "~5.0.1",
    "expo-asset": "^5.0.1",
    "expo-constants": "^6.0.0",
    "expo-font": "~5.0.1",
    "expo-intent-launcher": "^6.0.0",
    "expo-keep-awake": "~5.0.1",
    "expo-linear-gradient": "~5.0.1",
    "expo-localization": "~5.0.1",
    "expo-location": "^5.0.1",
    "expo-permissions": "^6.0.0",
    "expo-yarn-workspaces": "^1.1.0",
    "i18n-js": "3.2.2",
    "pomeranian-durations": "^1.8.1",
    "prop-types": "15.7.2",
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
    "react-native-app-intro-slider": "^3.0.0",
    "react-native-gifted-chat": "0.9.0",
    "react-native-keyboard-spacer": "^0.4.1",
    "react-navigation": "^3.9.1",
    "react-redux": "6.0.1",
    "redux": "^4.0.1",
    "redux-devtools-extension": "2.13.8",
    "redux-logger": "3.0.6",
    "redux-optimist": "^1.0.0",
    "redux-sentry-middleware": "^0.1.1",
    "redux-persist": "6.0.0",
    "redux-thunk": "2.3.0",
    "sentry-expo": "2.0.0",
    "styled-components": "^4.2.0",
    "synced-interval": "^0.2.0"

1 个答案:

答案 0 :(得分:0)

最近两个小时我一直在同一个问题上挣扎。

在我的情况下,有一些使用旧版本的react-native的过时库(包括我编写的库)以某种方式导致此错误。

尝试运行:

npm outdated

然后使用expo-cli逐一安装列出的过时库的新版本。

希望这会有所帮助:)