[SDK 47] RNCClipboard, that isn't supported in Expo Go, AppRegistry.runApplication(). Module has not been registered as callable.

See original GitHub issue

Summary

After updating to SDK 47 I get this error:

In SDK 46 everything worked fine.

 ERROR  Error: Your JavaScript code tried to access a native module, RNCClipboard, that isn't supported in Expo Go.
To continue development with RNCClipboard, you need to create a development build of your app. See https://expo.fyi/missing-native-module for more info, 
including how to disable these errors.
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

I tried searching for deprecated prop-types in my project but I don’t have any when searching in node_modules… https://github.com/facebook/react-native/issues/34688

What platform(s) does this occur on?

Android, iOS

Environment

  expo-env-info 1.0.5 environment info:
    System:
      OS: Windows 10 10.0.19043
    Binaries:
      Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
    IDEs:
      Android Studio: AI-212.5712.43.2112.8609683
    npmPackages:
      @expo/webpack-config: ^0.17.2 => 0.17.3
      expo: ^47.0.0-beta.7 => 47.0.0-beta.7
      react: 18.1.0 => 18.1.0
      react-dom: 18.1.0 => 18.1.0
      react-native: 0.70.4 => 0.70.4
      react-native-web: ~0.18.7 => 0.18.9
    Expo Workflow: bare

Minimal reproducible example

I’m registering the app in my index.js file

import { registerRootComponent } from 'expo';

import App from './src/App';

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Kudocommented, Nov 3, 2022

that’s a good finding! we will follow up the problem in sdk 47 release.

2reactions
Kudocommented, Nov 2, 2022

hi there!

did you test your app on expo go and having @react-native-clipboard/clipboard in your dependencies? since expo go is limited native runtime, extending 3rd native modules is not supported. if you want to use 3rd native modules, please try to use development builds.

we add this checking in sdk 47 and want to help the transition from expo go to development builds, because we found some use cases where adding 3rd native modules in the app but still using expo go. in the meantime, we are not so confident with the feature and will keep eyes on it whether there’s too much false alarm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native: Module AppRegistry is not a registered callable ...
I'm trying to run the gradlew command but it keeps telling me it can't find the Android SDK even though I have ANDROID_HOME...
Read more >
Error Upgrading to Expo 46, "main" has not been registered
I have just upgrade from 43 to 46, and when I build, Expo Doc pop up error. SDK Version: 46; Platforms(Android/iOS): android and...
Read more >
How to Share from a React Native App (including the Web)
Recently I was building a game with React Native, Match the Pairs, that allows a user to share how many moves it took...
Read more >
expo - bytemeta
expo repo issues. ... [SDK 47] RNCClipboard, that isn't supported in Expo Go, AppRegistry.runApplication(). Module has not been registered as callable.
Read more >
Last issues related to native-apps - PullAnswer
[SDK 47] RNCClipboard, that isn't supported in Expo Go, AppRegistry.runApplication(). Module has not been registered as callable. 0 Likes 7 Replies.
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