Anyone knows how to fix getDevServer is not a function (it is Object), js engine: hermes #37799
Replies: 8 comments · 3 replies
-
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). |
Beta Was this translation helpful? Give feedback.
-
same problem for me |
Beta Was this translation helpful? Give feedback.
-
Same problem here... |
Beta Was this translation helpful? Give feedback.
-
I am having the same issues in my project, has anyone found a solution |
Beta Was this translation helpful? Give feedback.
-
I have fixed it just by replacing import "@/global.css" with function loadGlobalCSS() {
try {
require("@/global.css");
} catch (e) {
}
}
loadGlobalCSS(); |
Beta Was this translation helpful? Give feedback.
-
Got it fixed by disabling Hermes temporarily in your app.json:
|
Beta Was this translation helpful? Give feedback.
-
Add |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions