react-native response error code 500

Created on 17 Aug 2017  Â·  9Comments  Â·  Source: facebook/react-native

Hello
I'm encountering a strange issue , when I use react-native run-android command on the template project which I've created using react-native init I get the following the red error page on the device:
re-error

and then it disappears leaving me with a totally blank page!
the packager terminal shows the following error:
capture

Development OS: Win 7
react-native-cli: 2.0.1
react-native: 0.47.1
node-v: 6.11.2
npm -v: 3.10.10
yarn --version: 0.27.5
device android version:6.0.1

Ran Commands Locked

Most helpful comment

I was getting the same error today. For me, I fixed by downgrading babel-preset-react-native from 3.0.0 to 1.9.2 in my package.json.

"devDependencies": { "babel-jest": "20.0.3", "babel-preset-react-native": "1.9.2", "jest": "20.0.4", "react-test-renderer": "16.0.0-alpha.12" }

Then just run 'yarn' in your terminal

All 9 comments

I was getting the same error today. For me, I fixed by downgrading babel-preset-react-native from 3.0.0 to 1.9.2 in my package.json.

"devDependencies": { "babel-jest": "20.0.3", "babel-preset-react-native": "1.9.2", "jest": "20.0.4", "react-test-renderer": "16.0.0-alpha.12" }

Then just run 'yarn' in your terminal

Thank you very much @adon94 , you saved a day !

Should be fixed in the next release of babel-preset-react-native.

@facebook-github-bot duplicate #15513

Duplicate of #15513

Hello,
I'm getting this error "The development server returned response code:500"
I decremented the version of the dependencies but still the error is not going.

Please help.

I have done everything change babel dependecy change react-native version , create new project , remove node_modules everything still it is showing same error.Help me please.

Did you try to connect on same wifi network (phone & computer)?

yes I tried the same.

On Wed, Jul 18, 2018 at 10:45 PM Quốc Vương notifications@github.com
wrote:

Did you try to connect on same wifi network (phone & computer)?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/15534#issuecomment-406007057,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AjK28vbRVw5VjiimQXP2zXy12KPudqO3ks5uH20xgaJpZM4O6FE9
.

--
NOTICE: Whirlpool Corporation e-mail is for the designated recipient only
and may contain proprietary or otherwise confidential information. If you
have received this e-mail in error, please notify the sender immediately
and delete the original. Any other use or disclosure of the e-mail by you
is unauthorized.

Was this page helpful?
0 / 5 - 0 ratings