Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requiring unknown module "0" #467

Closed
bockc opened this issue Mar 12, 2020 · 1 comment
Closed

Requiring unknown module "0" #467

bockc opened this issue Mar 12, 2020 · 1 comment

Comments

@bockc
Copy link

bockc commented Mar 12, 2020

I have an issue while connecting physical devices to react-native-debugger.

Here's how to reproduce it:

  • Start your application with any physical device (iOS/Android) and connect it to react-native-debugger
  • Start your application on another physical device (iOS if you first connected an Android, Android otherwise) and connect it to react-native-debugger
  • The application will show a red screen saying requiring unknown module "0"

What I noticed is:

  • it does not happen if you debug with Chrome instead of react-native-debugger
  • the order of platforms used does not matter (iOS -> Android === Android -> iOS)
  • only the first connected device will be able to start the application without the error, even if the error
    happened on the second device, you can still restart it on the first one
  • the application is able to start on the second device (the one with the 'unknown module error') if you
    disconnect it from react-native-debugger
  • restarting metro allows you to 'reset' this situation, so you can run and debug your app on the device that previously had the error
  • it does not seem to happen if you start the application with a physical iOS device, then start the app in an iOS simulator
  • it does seem to happen if you start the application in an iOS simulator then start the application in an Android simulator, definitely looks like it's a 'platform switch' issue

Unfortunately I only have one Android and one iOS devices to my disposal, so I couldn't test more scenarios.

I took a screenshot of the error in case it would be of any help:
Screenshot_1584009361

React Native Debugger app version: 10.0.6
React Native version: 0.61.5
Platform: iOS & Android
Is real device of platform: Yes, but also occurs in simulators
Operating System: macOS

@jhen0409
Copy link
Owner

It was fixed by #468 and released as v0.10.7. Thanks for report! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants