The development server returned response error code: 500 in react native

前端 未结 16 1219
夕颜
夕颜 2021-02-05 01:29

I am using react-native framework for developing my android app. I want to use react-native-material-design library for making Toolbar wit

相关标签:
16条回答
  • 2021-02-05 02:06

    For those using stores or top level components. If you delete one, then make sure that it's not being imported anywhere else.

    In my case, I deleted a store that was being imported top level.

    0 讨论(0)
  • 2021-02-05 02:06

    For those using stores or top level components. If you delete one, then make sure that it's not being imported anywhere else.

    In my case, I deleted a store that was being imported top level.

    0 讨论(0)
  • 2021-02-05 02:07

    It could be that the name of the JavaScript files that you imported is same with any React predefined libraries/components. For example, importing View.js from folder app/components that you have created.

    import View from './app/components/View'
    

    The above statement will produce the error. So, by changing the name of file to Interface.js

    import Interface from './app/components/Interface'
    

    Now, the code can run well

    0 讨论(0)
  • 2021-02-05 02:09

    react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

    run this command : this will show the error like twice closing of tags or unable to find any module

    use sudo before the command in linux based systems

    0 讨论(0)
  • 2021-02-05 02:11

    I had the same problem, one of my node modules was not well configured (react navigation) so I just re install it locally using

    npm install react-navigation --save
    
    0 讨论(0)
  • 2021-02-05 02:15

    Sometime this error arise when you don't specify the correct path of .js files

    Like instead of typing the Correct path :

    var WeatherProject = require('./Main/WeatherProject');
    

    A Wrong Path is typed (capitalization,spelling error,special symbols) :

    var WeatherProject = require('./WeatherProject');
    
    0 讨论(0)
提交回复
热议问题