Build Android fails - Unable to resolve module `EventEmitter`

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): Android

Hey guys,

I have an outdated standalone app (SDK 31) and updating to the latest (37). I did the first ones manually 31 until 34 and then did “expo upgrade” all the way to 37. However it is complaining about EventEmitter… any idea what this is or how to fix that?

Thank you


root@DESKTOP-Q5MG1DU:/home/thomi/rnappexponent# expo ba
Checking if there is a build in progress...
? Would you like to upload a keystore or have us generate one for you?
If you don't know what this means, let us handle it! :)
Warning: Your project may contain unoptimized image assets. Smaller image sizes can improve app performance.
To compress the images in your project, abort publishing and run npx expo-optimize.
Unable to find an existing Expo CLI instance for this directory; starting a new one...
Starting Metro Bundler on port 19001.
Tunnel ready.
Publishing to channel 'default'...
Building iOS bundle
Unable to resolve module `EventEmitter` from `app/Services/AppEventEmitter.js`: EventEmitter could not be found within the project.

And here is my package.json

  "name": "ReactNativeApp",
  "version": "2.0.1",
  "private": true,
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios"
  "jest": {
    "preset": "jest-expo"
  "dependencies": {
    "@expo/vector-icons": "^10.0.0",
    "expo": "^37.0.0",
    "immutability-helper": "^3.0.2",
    "react": "16.9.0",
    "react-native": "",
    "react-native-alphabetlistview": "^0.3.1",
    "react-native-atoz-list": "^1.0.5",
    "react-native-drawer": "^2.5.1",
    "react-native-keyboard-spacer": "^0.4.1",
    "react-native-meteor": "^1.4.0",
    "react-native-router-flux": "^4.2.0",
    "react-native-scrollable-tab-view": "^1.0.0",
    "react-native-sglistview": "^0.4.5",
    "react-native-swipe-gestures": "^1.0.5",
    "react-redux": "^7.2.0",
    "redux": "^4.0.5",
    "redux-logger": "^3.0.6"

Figured it out, couldn’t use magic import anymore had to replace with full path:

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