-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Is this a bug report?
Yes.
Have you read the Contributing Guidelines?
Yes.
Environment
react-native -v
:
react-native-cli: 2.0.1
react-native: 0.48.3node -v
: v8.5.0npm -v
: 5.3.0yarn --version
: 0.17.2
Then, specify:
- Target Platform: iOS
- Development Operating System: macOS 10.12.6
- Build tools: Xcode
Steps to Reproduce
The react native packager fails to detect a project switch and respond to it in a friendly way to the user.
Round 1:
- Create a react native project A which includes some JavaScript error that will be triggered on launch. Anything that produces the red screen of death should work.
- Run project A in the simulator with eg
react-native run-ios
. - Keep in the local react native packager open.
- Create a react native project B. Just using
react-native init
with no modifications is sufficient. - Run project B in the simulator with eg
react-native run-ios
. - At this point you should be prompted with the same red screen of death citing the JavaScript error in project A even though you ran project B.
Round 2:
- Now, go back to project A and fix the JavaScript code such that it runs fine.
- Return to project B and run it in the simulator. You should now be presented with the `Application ... has not been registered." error screen (attached). This is not a bad error, since it provides a hint that immediately identifies the issue.
- Now, reintroduce the error in project A and we're back to the same situation.
Expected Behavior
I would expect to either see project B run successfully or an error indicating that the packager was in a bad state.
Actual Behavior
The local packager ends up in a corrupted state and produces unexpected behavior in the simulator.
Reproducible Demo
Hopefully the steps above are sufficient to repro the issue. If you have any issues, don't hesitate to reach out in the comments.
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.