-
Notifications
You must be signed in to change notification settings - Fork 1.4k
The development server returned response error code: 500 #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess maybe you're using this lib: GeekyAnts/NativeBase#24 anyhow the issue is related to react-native version changes and some code (either yours or a library) depending on some private code in react-native that changed |
I managed to solve this error To solve it you need to view the mentioned file and change the file location to the correct location. |
Sorry but @samassango could you please explain a little bit further. |
@izzateesafia Okay this issue occurs in node_modules meaning it's not your code but its some of the dependence which had changed files location example: |
For me this error was resolved running |
@guarani your solution worked for me,thank you |
Be aware if you have an old metro bundler instance running, you should try to restart it. |
for my case i chenged node_module folder in another folder and run it. |
One of the reasons why I was having this error was because I imported 'react-native' library twice.
I don't know If this can really cause this problem but removing the redundant line of import solved this issue for me. |
restarting the metro bundler works! |
I also have this issue :( |
Try run |
Expected Output Running App. Sets followed:
cd projectname -- Start Android Studio - Run Emulator (API 23) --
Other Info:
On Windows 10 Pro - 64 Bit |
first delete node_modules folder and in package.json
change react-native version "react-native": "0.55.2", and
babel "babel-preset-react-native": "4", after that run yarn install or
npm install and run its work fine for me.
…On 24 July 2018 at 11:40, Karma Dice ***@***.***> wrote:
Expected Output
Running App.
Sets followed:
npm -g install react-native
npm -g install socks
npm -g install react-native-cli
cd /project-directory
react-native init <projectname>
cd projectname
-- Start Android Studio - Run Emulator (API 23) --
react-native run-android
Output:
[image: native-error]
<https://user-images.githubusercontent.com/3824371/43119992-3ff0ce2e-8f36-11e8-8c42-c6cd74d7f5d2.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#401 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXIWEm9ADbFdJfcFlUz-3aA7sK0cl9osks5uJrpFgaJpZM4PSuo1>
.
|
Kish that's perfect mate. Thanks a bunch. |
The horror of Android on windows is real. Same issue, metro bundler seems to be fine but issue persists. Time for some tea. |
Thanks a lot @kishanmahor ! |
React native on windows seems to be broken, and Kishanmahor workaround to return to an older vesion of react native seems to be the way to make it work. As a temporary workaround works, but its not something that makes me feel comfortable with react native. Edit: Seems to be related to facebook/react-native#20353 |
@rcsoares Metro Builder was running, but having the same issue for the sample starting app in react |
Downgrade the following: |
Issue is due to react-native 0.56 |
hello , fast solution is : |
@kishanmahor methods works for me, thanks a lot! |
@ravichandrasv @kishanmahor You just saved me today. It works fine for windows 10. |
@albertcjr as you mentioned "Issue is due to react-native 0.56", then 0.57 will clear this issue? |
Strange thing I noted. I can't believe. App doesn't work when Android device was connected with USB cable. App started to work normal when I connected with Wifi (Using adb connect command). Hope it works for you as well. |
I had the same problem as @karmicdice, and solve it with the suggested by @qweasdzxc23, but I reiterate with the question of @prasad456, ¿I would like to know why this problem occurs and what is the reason for this solution? |
Restarting Metro Bundler with |
I just started with learning react native and got the same error. This link solved the issue. All the above solution did not work for me |
@md0092651 solution works for me. |
@md0092651 {
"name": "someProject",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.5.0",
"react-native": "0.57.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.45.3",
"react-test-renderer": "16.5.0"
},
"jest": {
"preset": "react-native"
}
} Notice that "react": "16.5.0"
"react-native": "0.57.0" and "metro-react-native-babel-preset": "0.45.3",
"react-test-renderer": "16.5.0" works together as required. Those were the changes in package.json that made it possible to build and run the app in my case. |
I also had this issue. Found out I have misspelled when mentioning a component I have created. But needs them to run. The issue solved after correcting that. |
The same thing happened to me and the import had doubled, validate that first |
Thanks for your asking |
has anyone gotten this error its terrible kept me in for weeks now |
I spent almost two days trying to fix this issue, I tried so many difficult alternatives and what helped me was a easy one. I just dowload the node version and download a older one. Simple as that... That works for me, I hope works for ya'll! <3 |
I got this problem because the auto-import file path was wrong. So correct the path to solving it. |
Got the same problem. I deleted |
In my first case, as long as I imported the library which I have created (WelcomeScreen) in App.js, I had this problem. After I applied your 1st and 3rd steps, it was solved. Since the used versions are "react-native": "0.71.3", "@babel/core": "^7.20.0", I couldn't apply your 2nd step. Do you have any idea which versions I should use? Edit: |
Uh oh!
There was an error while loading. Please reload this page.
Description
I started experiencing this issue after change an expo version from 15.0.0 to 19.0.0
The text was updated successfully, but these errors were encountered: