Android build failing after upgrading dependencies (to Expo 47/48)

I am at a loss at this point and looking for some help.

I’ve just upgraded all the dependencies in our project after being stuck on expo 45 for a while. Something about that has caused issues on Android, and none of the information that I can get from the error messages is helpful. There’s also nothing I’ve found online about any of these issues.

The error I’m getting is:
1: Error when running in the emulator using npx expo start:

undefined is not a function from apollo??
Which seems to happen any time a graphql query is included.

And also comes with this:

"main" has not been registered.

But is also maybe associated with react-native-reanimated: sometimes I also get this:

undefined is not a function from react-native-reanimated

I’ve googled all of this and not really found anything, and these error messages are not very informative beyond just… something is failing early on in running the app. It fails so early on that I can’t even use the debugger, so this is all the output I have.

We are now on the latest expo-supported versions of @apollo/client, react-native-reanimated, etc.

2: Error when running eas build:

A bunch of errors mostly about BuildConfig.IS_NEW_ARCHITECTURE_ENABLED

I’m not sure if the build error is related to the other errors or not.
Again when I googled it I got nothing.
My only hunch about this is maybe it’s because we’re still on node 14 not 16?

Here’s the output from npx expo-env-info:

expo-env-info 1.0.5 environment info:
      OS: macOS 12.5
      Shell: 5.8.1 - /bin/zsh
      Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
      Yarn: 1.22.17 - ~/project/node_modules/.bin/yarn
      npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
      CocoaPods: 1.11.3 - /usr/local/bin/pod
      iOS SDK:
        Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
      Android SDK:
        API Levels: 32, 33
        Build Tools: 30.0.3, 33.0.0, 33.0.1
        System Images: android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a
      Android Studio: 2021.3 AI-213.7172.25.2113.9014738
      Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
      @expo/metro-config: ^0.7.1 => 0.7.1
      @expo/webpack-config: ^18.0.1 => 18.0.1
      expo: ^48.0.0 => 48.0.7
      react: 18.2.0 => 18.2.0
      react-dom: 18.2.0 => 18.2.0
      react-native: 0.71.4 => 0.71.4
      react-native-web: ~0.18.7 => 0.18.12
      eas-cli: 3.8.0
      expo-cli: 6.3.2
    Expo Workflow: managed

edit: it works if I use expo 46… so I’m guessing something to do with upgrading to expo 47 is what broke it.