Joseph Barasa
Joseph Barasa

Reputation: 103

I have just updated my expo project and seem to have a little bit of an error. ERROR Error: Cannot find native module 'ExpoImage', js engine: hermes

enter image description heremy package.jsonenter image description hereWARN The native view manager required by name (ExpoImage) from NativeViewManagerAdapter isn't exported by expo-modules-core. Views of this type may not render correctly. Exported view managers: [ExpoBlurView]. ERROR Error: Cannot find native module 'ExpoImage', js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

npx expo start -c npx expo install expo-image npx expo prebuild

They all did not help.

Upvotes: 5

Views: 435

Answers (1)

bo_
bo_

Reputation: 348

I tried for 3 hours, several different solutions. The final sequence that worked was the following:

  1. deleted app from phone
  2. deleted ios folder from app
  3. npx expo prebuild
  4. npx expo run:ios

There are a lot of other combinations of things I tried, but this ultimately worked. My best guess is that something in the ios folder wasn't being updated or installed after trying to add the expo-image package.

Upvotes: 0

Related Questions