main.jsbundle, Foundation and Security missing in the project, causing error

前端 未结 4 523
我在风中等你
我在风中等你 2021-02-01 22:43

I\'ve noticed that file main.jsbundle file is missing from the project and am not sure of how to fix it, should I delete the file / is there a step I can perform to

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 23:08

    I'm on a mac. I'm new to react native, I had the same issue. After 2 hours of trying everything suggested, I solved it. I realised that you need to first start it on a different tab inside the terminal and then run the command "react-native run-ios". So if you still have problems, open terminal, have 2 tabs open. 1) First cd to your project and enter "npm run start". 2) Then go the second tab and enter "react-native run-ios". That should do it.

    If you have problems with "react-native run-android" then you should have its simulator open beforehand. Open a third tab and go to ~/Library/Android/sdk/tools, then enter "./emulator -list-avds" to see your installed android simulators, then start one with "./emulator -avd {your-emulator-name}". When you are done, hit "react-native run-android".

提交回复
热议问题