react-native-blurhash: [BUG] Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'BlurhashModule' could not be found

Bug

Describe the bug I’m getting this error when upgrading to version 2.x on Expo 50: ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(…): ‘BlurhashModule’ could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {“NativeModules”:[“PlatformConstants”,“LogBox”,“SourceCode”,“Timing”,“AppState”,“BlobModule”,“WebSocketModule”,“SettingsManager”,“DevSettings”,“Networking”,“RedBox”,“Appearance”,“DevLoadingView”,“DeviceInfo”,“UIManager”,“RNCSafeAreaContext”,“KeyboardObserver”,“RNCAsyncStorage”,“NativeAnimatedModule”,“ImageLoader”,“I18nManager”,“LinkingManager”],“TurboModules”:[],“NotFound”:[“NativePerformanceCxx”,“NativePerformanceObserverCxx”,“BugReporting”,“HeadlessJsTaskSupport”,“SoundManager”,“PlatformLocalStorage”,“RNC_AsyncSQLiteDBStorage”,“FrameRateLogger”,“IntentAndroid”,“BlurhashModule”]}, js engine: hermes

Since I guess I don’t have any use for the new arch yet while staying managed in Expo I’ll stay on v1.x, but I guess it would be nice if things don’t break when upgrading… 😃

"react": "18.2.0",
"react-native": "0.73.3",
"react-native-blurhash": "2",
"expo": "~50.0.5",

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 7
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I think this may need to be reopened. I tried updating to the latest version 2.0.1 and received the following when building on Expo servers via eas build using "react-native": "0.73.4", and "expo": "~50.0.8",.

› Compiling react-native-blurhash Pods/react-native-blurhash » react_native_blurhash_vers.c

› Compiling react-native-blurhash Pods/react-native-blurhash » react-native-blurhash-dummy.m

› Compiling react-native-blurhash Pods/react-native-blurhash » BlurhashViewManager.m

› Compiling react-native-blurhash Pods/react-native-blurhash » BlurhashViewComponentView.mm

› Compiling react-native-blurhash Pods/react-native-blurhash » BlurhashModule.mm


❌  (node_modules/react-native-blurhash/ios/BlurhashModule.mm:9:9)

   7 | #endif
   8 | 
>  9 | #import "react_native_blurhash-Swift.h"
     |         ^ 'react_native_blurhash-Swift.h' file not found
  10 | 
  11 | #ifdef RCT_NEW_ARCH_ENABLED
  12 | using namespace facebook::react;

› Compiling react-native-blurhash Pods/react-native-blurhash » react_native_blurhash_vers.c

› Compiling react-native-blurhash Pods/react-native-blurhash » react-native-blurhash-dummy.m

› Compiling react-native-blurhash Pods/react-native-blurhash » BlurhashViewManager.m

› Compiling react-native-blurhash Pods/react-native-blurhash » BlurhashViewComponentView.mm

› Compiling react-native-blurhash Pods/react-native-blurhash » BlurhashModule.mm

▸ ** BUILD FAILED **

Reverting back to "react-native-blurhash": "~1.1.11", seems to resolve the issue for now.