Closed
Description
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Partly
Environment
Environment:
OS: Linux 4.4
Node: 8.9.4
Yarn: 1.3.2
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0
Steps to Reproduce
- Create a project following the Getting Started guide (Quick start tab)
- Switch to the Building Projects with Native Code tab of the guide, and follow the steps there to create an Android Virtual Device
- Start the Android Virtual Device
- Run
npm run android
in the fresh project - Once the app has loaded in the Android emulator, press Ctrl+M to bring up the dev tools menu
- Select "Debug JS Remotely"
- In the Chrome browser that opens, open the web console Ctrl+Shift+I
- Enable Pause on exceptions
- Reload the Chrome page
- Error will occur here
Expected Behavior
The debugger to not crash
Actual Behavior
The debugger crashed.
Stacktrace:
(index):94 Uncaught TypeError: Cannot set property 'volume' of null
at Object.render ((index):94)
at Object.setState ((index):48)
at WebSocket.ws.onopen ((index):152)
Reproducible Demo
No project code changes are need to reproduce this. Just run
npx create-react-native-app TestProject
Note: npx
is available if you have the at least npm@5.2.0
installed