Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

TypeError: require(_dependencyMap[2], "reac(...)ies/Core/Devtools/getDevServer") is not a function (it is Object), js engine: hermes
This is happening right after i upgrade to expo 53
@hirbod

Simulator Screenshot - iPhone 16 Pro - 2025-07-02 at 09 09 14

You must be logged in to vote

Replies: 8 comments · 3 replies

Comment options

In my old app I fixed it like so:

We had to define:

"overrides": {
    "@expo/metro-runtime": "5.0.4"
}

as a resolution/override in our root package.json within our monorepo (depends on your bundler, called "resolutions" in yarn/pnpm irc).
After locking metro-runtime to 5.0.4 — which is the version shipped with the current expo-router — the problem was resolved.

You must be logged in to vote
1 reply
@shanoysinc
Comment options

sadly that did not work for me

Comment options

same problem for me

You must be logged in to vote
1 reply
@shanoysinc
Comment options

if you ever find a solution please share

Comment options

Same problem here...

You must be logged in to vote
0 replies
Comment options

I am having the same issues in my project, has anyone found a solution

You must be logged in to vote
0 replies
Comment options

I have fixed it just by replacing

 import "@/global.css"

with

function loadGlobalCSS() {
  try {
    require("@/global.css");
  } catch (e) {
  }
}

loadGlobalCSS();
You must be logged in to vote
1 reply
@pontusvikberg
Comment options

I tried overriding "@expo/metro-runtime" in package.json and setting "unstable_enablePackageExports" in metro.config.js.
But this was the change that resolved the issue for me

Comment options

Got it fixed by disabling Hermes temporarily in your app.json:

{
  "expo": {
    "android": {
      "jsEngine": "jsc"
    }
  }
}
You must be logged in to vote
0 replies
Comment options

Add @expo/metro-runtime to devDependencies. 6.1.2 fixed with expo 54 for my setup.

You must be logged in to vote
0 replies
Comment options

One app in my monorepo had @expo/metro-runtime as a dependency with an old version (4.x), so we had multiple versions of it installed. Removing it as a dependency fixed it.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.