frogcjn / vscode-ReactNative-HelloWorld

This is the hello world project for using React Native in Visual Studio Code
4 stars 2 forks source link

Could not connect to development server #1

Open cjsimon opened 7 years ago

cjsimon commented 7 years ago

I get this error after following all of the instructions for debugging on a physical android device. At first I got the following error: Syntax Error: Strict mode does not allow function declarations in a lexically nested statement error

But after turning on JS minify that error went away and I am presented with this could not connect error. I tried running adb reverse tcp:8081 tcp:8081 as is suggested but that does not solve the problem.

frogcjn commented 7 years ago

Somehow, the new version of the vscode has reslove the problem. This repo is a demo to show fix the problem. If you use the latest version of VSCode, you should not use this old code.