react-native-clipboard / clipboard

React Native Clipboard API for both iOS and Android.
MIT License
669 stars 118 forks source link

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCClipboard' could not be found. #246

Open suhmah opened 1 month ago

suhmah commented 1 month ago

Environment

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCClipboard' 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","Timing","AppState","SourceCode","BlobModule","WebSocketModule","SettingsManager","DevSettings","RedBox","Networking","Appearance","DevLoadingView","UIManager","DeviceInfo","ImageLoader","LinkingManager"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","BugReporting","HeadlessJsTaskSupport","SoundManager","IntentAndroid","RNCClipboard"]}, js engine: hermes

Platforms

iOS only

Versions

Description

I have the following error Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCClipboard' 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","Timing","AppState","SourceCode","BlobModule","WebSocketModule","SettingsManager","DevSettings","RedBox","Networking","Appearance","DevLoadingView","UIManager","DeviceInfo","ImageLoader","LinkingManager"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","BugReporting","HeadlessJsTaskSupport","SoundManager","IntentAndroid","RNCClipboard"]}, js engine: hermes

image image

Reproducible Demo

the error happens when running yarn ios and the application is installed. before even starting the metro bundle it gives an error

nvacheishvili commented 1 month ago

Having the same issue

BrianIto commented 1 month ago

Same here. Did the pod install in the ios directory. Still getting the issue.

poojagirne commented 1 month ago

Same issue in andriod also while testing in real device.

BrianIto commented 1 month ago

@suhmah I really don't get why this is happening, but using expo modules with expo dev client and expo-clipboard package solved the whole problem to me.

I want to just add the the newer version of Expo requires minimum development target to be 13.4 on iOS environments.

poojagirne commented 1 month ago

@suhmah I really don't get why this is happening, but using expo modules with expo dev client and expo-clipboard package solved the whole problem to me.

I want to just add the the newer version of Expo requires minimum development target to be 13.4 on iOS environments.

Even after using Expo, I am still getting the same error while testing on an actual device, not in the simulator.

Nelie-Taylor commented 3 weeks ago

I got same issue.

ijs1103 commented 3 weeks ago

Both Android emulators and devices have the same problem.

truezombie commented 3 weeks ago

I have the same error.

BrianIto commented 3 weeks ago

I got the error again, and then migrated to expo-clipboard. Sorry, folks, that's not much help but it is what worked for me. :(

UgurGumushan commented 6 days ago

I experienced it on mocha tests after version upgrade and I mocked the module. Does it affect production code?