Remote debugger bug, react-native v 0.50 android
See original GitHub issueIs this a bug report?
yes
Environment
Environment: OS: Linux 4.10 Node: 8.5.0 Yarn: 1.0.1 npm: 5.3.0 Watchman: Not Found Xcode: N/A
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.50.4 => 0.50.4
Browser: Chrome Version 59.0.3071.115 (Official Build) (64-bit) Target: (Android 8.0)
Steps to Reproduce
react-native init AwesomeProject
cd AwesomeProject
react-native run-android
enable remote debugger on device
open browser to http://localhost:8081/debugger-ui/
Expected Behavior
device should connect to remote debugger with no errors
Actual Behavior
device will not connect to remote debugger.
console will display -
‘Uncaught SyntaxError: Unexpected token …’ localhost/:183
localhost/:183 -
worker.postMessage({
…object,
url: await getBlobUrl(object.url),
});
I reverted back to 0.49 and it got rid of the error, and am able to connect properly, so I am sure it is with 0.50
it looks like the error is coming from object spread operator in /react-native/blob/master/local-cli/server/util/debugger-ui/index.html
Object spread is not supported pre version 60 on google chrome.
Reproducible Demo
react-native init ${app name}
Issue Analytics
- State:
- Created 6 years ago
- Comments:11
Top GitHub Comments
I have a bugfix in my repo, I submitted a PR as well.
You can pull down my version instead of the facebook one
https://github.com/universalmind303/react-native
Another fix ( if you are using chrome ) , upgrade to the latest version of chrome
I got the same problem, and I’m using chrome version
64.0.3282.167
Runingreact-native: 0.53.3