question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I run "expo publish", I get this error: Missing module "hermes-engine/win64-bin/hermesc" in the project

See original GitHub issue

Summary

I upgraded recently from SDK 41 to SDK 42 and enabled hermes by following the instructions here: https://docs.expo.io/guides/using-hermes/

I am on Windows 11, I run the following EAS build smoothly without any problem:

eas build --clear-cache --platform android

The apk is generated and it has a reduced size and it is lightening fast at launch. The problem comes when I make changes to the code and run “expo publish” for OTA updates, it gives the following error:

Missing module "hermes-engine/win64-bin/hermesc" in the project.This usually means hermes-engine is not installed. Please verify that dependencies in package.json include "react-native" and run `yarn` or `npm install`.

Hermes engine is installed under react-native as seen in the screenshot below: hermes-error

Although not necessary, I installed hermes-engine (npm i hermes-engine) and tried again, same problem.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

42

Environment

Expo CLI 4.7.3 environment info: System: OS: Windows 10 10.0.22000 Binaries: Node: 14.17.0 - C:\Program Files\nodejs\node.EXE npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 4.2.0.0 AI-202.7660.26.42.7351085 npmPackages: expo: ^42.0.0 => 42.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

On SKD 42, enable hermes, run eas build and then “expo publish”.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Kudocommented, Jul 21, 2021

@ecreeth thank you for the solution. the change is merged and will let you know once we releasing new version.

@asalha i am thinking if the solution might not help for you because the nested node_modules/react-native/node_modules/hermes-engine. if you still encounter the issue even after the fix, please let us know. thanks!

1reaction
mirik999commented, Aug 2, 2021

@mirik999 what is your expo-cli version ? (you could execute expo --version to check) please make sure to use the latest v4.9.1.

Omg, i remember i have updated my expo-cli a few days ago. But now version is 4.8.1. Okay now i am going to update expo-cli and retry

NOTE* Yes, it worked. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

I run "expo publish", I get this error: Missing module "hermes ...
Missing module "hermes-engine/win64-bin/hermesc" in the project.This usually means hermes-engine is not installed. Please verify that ...
Read more >
Common development errors - Expo Documentation
A list of common development errors that are encountered by developers using Expo.
Read more >
Unable to find expo in this project - have you run yarn / npm ...
Error ? you are trying to launch the expo framework yet it can't be found installed as part of your application modules.
Read more >
expo-cli - npm
To view a project you must have an Expo CLI server running for that project. Run expo start [path] to start running the...
Read more >
How Run and Test React Native / Expo On Your Apple iOS ...
Once you have your Expo project up and running, start the local dev ... 16:27Couldn't start project on Android: Error running adb: No...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found