ReferenceError: Can't find variable: typeAnnotation

Help, I upgraded from SDK 37 to 40 and I get this error when I start up the signed APK on android. This is a log from ‘adb logcat’. Where’s is this coming from? I don’t get this error when I run in dev mode in Expo Client. I’ve tried so many things like reinstalling expo modules and npm modules.

01-02 12:19:32.515 21643 21775 W ReactNativeJS: Unable to start your application. Please refer to https://expo.fyi/no-registered-application for more information.

01-02 12:19:32.519 21643 21775 E ReactNativeJS: ReferenceError: Can't find variable: typeAnnotation

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: CatalystInstanceImpl caught native exception

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: com.facebook.react.common.JavascriptException: ReferenceError: Can't find variable: typeAnnotation, stack:

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@980:17088

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@979:425

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@978:339

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@971:6338

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@935:247

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@925:201

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@913:337

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@912:127

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@769:138

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@747:695

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: <unknown>@6:60

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: d@2:875

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: global code@1897:3

01-02 12:19:32.525 21643 21776 E unknown:ReactNative:

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:12)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at java.lang.reflect.Method.invoke(Native Method)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:18)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:2)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at android.os.Handler.handleCallback(Handler.java:883)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at android.os.Handler.dispatchMessage(Handler.java:100)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at android.os.Looper.loop(Looper.java:237)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)

01-02 12:19:32.525 21643 21776 E unknown:ReactNative: at java.lang.Thread.run(Thread.java:919)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: Caught exception

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: com.facebook.react.common.JavascriptException: ReferenceError: Can't find variable: typeAnnotation, stack:

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@980:17088

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@979:425

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@978:339

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@971:6338

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@935:247

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@925:201

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@913:337

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@912:127

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@769:138

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@747:695

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: <unknown>@6:60

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: v@2:1473

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: d@2:875

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: global code@1897:3

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager:

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:12)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at java.lang.reflect.Method.invoke(Native Method)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:18)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:2)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at android.os.Handler.handleCallback(Handler.java:883)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at android.os.Handler.dispatchMessage(Handler.java:100)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at android.os.Looper.loop(Looper.java:237)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)

01-02 12:19:32.525 21643 21776 E unknown:DisabledDevSupportManager: at java.lang.Thread.run(Thread.java:919)

01-02 12:19:32.526 21643 21643 D AndroidRuntime: Shutting down VM

01-02 12:19:32.526 21643 21643 E AndroidRuntime: FATAL EXCEPTION: main

This is my App.js:

{
  "expo": {
    "name": "REMOVED FOR PRIVACY",
    "slug": "REMOVED FOR PRIVACY",
    "privacy": "unlisted",
    "userInterfaceStyle": "automatic",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "4.9.9",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#212327"
    },
    "updates": {
      "fallbackToCacheTimeout": 10000
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": false,
      "bundleIdentifier": "REMOVED FOR PRIVACY",
      "config": {
        "googleMapsApiKey": "REMOVED FOR PRIVACY"
      }
    },
    "android": {
      "versionCode": 15,
      "package": "REMOVED FOR PRIVACY",
      "googleServicesFile": "./google-services.json",
      "useNextNotificationsApi": true,
      "config": {
        "googleMaps": {
          "apiKey": "REMOVED FOR PRIVACY"
        },
        "googleSignIn": {
          "apiKey": "REMOVED FOR PRIVACY"
        }
      }
    }
  }
}

Does anyone had this error before?

Did you ever find a resolution to this?