npx expo-docto fail

I have an error when I run npx expo doctor

✔ Check package.json for common issues
✔ Validate global prerequisites versions
✖ Validate Expo Config
Unexpected error while running 'Validate Expo Config' check:
TypeError: Cannot read properties of undefined (reading 'schema')
✔ Verify prebuild support package versions are compatible
✔ Check for conflicting global packages in project
✔ Check for incompatible packages
✔ Check compatible dependency versions for the installed Expo SDK
One or more checks failed, indicating possible issues with the project.

app.config.json :

export default () => ({
    name: config.appName,
    slug: "app",
    version: "2.3.0",
    scheme: "app",
    orientation: "portrait",
    icon: config.icon,
    splash: {
        image: config.splash,
        resizeMode: "cover",
    },
    updates: {
        fallbackToCacheTimeout: 0,
    },
    assetBundlePatterns: ["**/*"],
    ios: {
        supportsTablet: false,
        bundleIdentifier: config.bundleIdentifier,
        googleServicesFile: config.IOSGoogleServicesFile,
        buildNumber: "2.3.0",
        config: {
            googleMapsApiKey: config.IOSMapAPIKey,
        },
        infoPlist: {
            LSApplicationQueriesSchemes: ["comgooglemaps", "citymapper", "uber", "lyft", "waze", "instagram", "instagram-stories", "fb", "facebook-stories", "fb-messenger"],
            NSRemindersUsageDescription:
                "App requires your permission to add events to your calendar",
            NSLocationWhenInUseUsageDescription:
                "App requires your permission to suggest activities around you",
        },
    },
    android: {
        package: config.bundleIdentifier,
        versionCode: 62,
        googleServicesFile: config.androidGoogleServicesFile,
        permissions: ["READ_CALENDAR", "WRITE_CALENDAR", "ACCESS_FINE_LOCATION", "CAMERA", "READ_EXTERNAL_STORAGE"],
        config: {
            googleMaps: {
                apiKey: config.androidMapAPIKey,
            },
        },
        "softwareKeyboardLayoutMode": "pan"
    },
    sdkVersion: "48.0.4",
    "plugins": [
        ["sentry-expo"],
        "@react-native-firebase/app",
        "expo-localization",
        [
            "expo-build-properties",
            {
                "android": {
                    "compileSdkVersion": 31,
                    "targetSdkVersion": 31,
                    "buildToolsVersion": "31.0.0"
                },
                "ios": {
                    "deploymentTarget": "13.0",
                    "useFrameworks": "static"
                }
            }
        ],
        "@react-native-firebase/app",
        "./withReactNativeMaps",
    ],
    runtimeVersion: {
        policy: "sdkVersion",
    },
    updates: {
        url,
    },
    "hooks": {
        "postPublish": [
            {
                "file": "sentry-expo/upload-sourcemaps",
                "config": {
                    "organization": config.sentryOrganisation,
                    "project": config.sentryProject
                }
            }
        ]
    },
    extra: {
        eas: {
            projectId,
        },
        facebookAppId: process.env.FACEBOOK_APP_ID,
        ...config.config,
    },
});

Didn’t find any solutions anywhere.

package.json :

"dependencies": {
    "@expo/react-native-action-sheet": "^3.14.0",
    "@react-native-async-storage/async-storage": "1.17.11",
    "@react-native-community/datetimepicker": "6.7.3",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-firebase/analytics": "^15.7.0",
    "@react-native-firebase/app": "15.7.0",
    "@react-navigation/bottom-tabs": "^6.4.0",
    "@react-navigation/material-bottom-tabs": "^6.2.4",
    "@react-navigation/material-top-tabs": "^6.3.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/native-stack": "^6.9.1",
    "@react-navigation/stack": "^6.3.2",
    "@reduxjs/toolkit": "^1.8.6",
    "@sentry/react-native": "4.13.0",
    "axios": "^1.1.3",
    "country-codes-list": "^1.6.10",
    "deprecated-react-native-prop-types": "^4.0.0",
    "expo": "^48.0.19",
    "expo-application": "~5.1.1",
    "expo-build-properties": "~0.6.0",
    "expo-calendar": "~11.1.1",
    "expo-clipboard": "~4.1.2",
    "expo-constants": "~14.2.1",
    "expo-dev-client": "~2.2.1",
    "expo-device": "~5.2.1",
    "expo-haptics": "~12.2.1",
    "expo-image-picker": "~14.1.1",
    "expo-intent-launcher": "~10.5.2",
    "expo-linear-gradient": "~12.1.2",
    "expo-linking": "~4.0.1",
    "expo-localization": "~14.1.1",
    "expo-location": "~15.1.1",
    "expo-notifications": "~0.18.1",
    "expo-skeleton-loader": "^1.1.3",
    "expo-splash-screen": "~0.18.2",
    "expo-status-bar": "~1.4.2",
    "expo-updates": "~0.16.4",
    "formik": "^2.2.9",
    "i18next": "^22.5.0",
    "imagekit-javascript": "1.3.7",
    "lottie-react-native": "5.1.4",
    "moment": "^2.29.4",
    "moti": "^0.25.3",
    "patch-package": "^6.5.1",
    "react": "18.2.0",
    "react-i18next": "^11.18.6",
    "react-native": "0.71.8",
    "react-native-actions-sheet": "^0.8.8",
    "react-native-bouncy-checkbox": "^3.0.6",
    "react-native-calendars": "1.1248.0",
    "react-native-collapsible-tab-view": "^5.0.0-rc.13",
    "react-native-gesture-handler": "~2.9.0",
    "react-native-google-places-autocomplete": "^2.4.1",
    "react-native-hyperlink": "^0.0.22",
    "react-native-map-clustering": "^3.4.2",
    "react-native-map-link": "^2.10.2",
    "react-native-maps": "1.3.2",
    "react-native-modal": "^13.0.1",
    "react-native-pager-view": "6.1.2",
    "react-native-paper": "4.9.2",
    "react-native-reanimated": "~2.14.4",
    "react-native-safe-area-context": "4.5.0",
    "react-native-screens": "~3.20.0",
    "react-native-section-list-get-item-layout": "^2.2.3",
    "react-native-share": "^8.1.0",
    "react-native-shared-element": "0.8.8",
    "react-native-svg": "13.4.0",
    "react-native-svg-transformer": "^1.0.0",
    "react-native-tab-view": "^3.3.0",
    "react-native-toast-message": "^2.1.5",
    "react-native-uuid": "^2.0.1",
    "react-native-vector-icons": "^9.2.0",
    "react-navigation-shared-element": "^3.1.3",
    "react-redux": "^8.0.4",
    "sentry-expo": "~6.1.0",
    "yup": "^0.32.11"
  },

Upgraded SKD version from 48 to 49 and remove “sdkVersion” field in app.config fixed the problem

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.