反应原生下载 javascript 包 100% 卡住 [英] react native downloading javascript bundle 100% stuck

查看:16
本文介绍了反应原生下载 javascript 包 100% 卡住的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试执行 npm start 时,它工作正常,但是当我尝试通过 expo 运行我的应用程序时,进程一直运行到 100%,之后什么也没有发生.我没有得到那里的确切问题.我在 package.json 中有以下内容....请帮我解决这个问题.

when I am trying to execute npm start it works fine, but when i try to run my application by expo the process goes till 100% and after that nothing happens. I am not getting what is exact issue over there. I am having following things in package.json.... please help me to resolve this issue.

{
  "name": "ProMeeting",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "jest-expo": "~29.0.0",
    "react-native-scripts": "^1.14.0",
    "react-test-renderer": "16.3.1"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@babel/preset-react": "^7.0.0-beta.56",
    "expo": "^29.0.0",
    "firebase": "^5.3.1",
    "native-base": "^2.7.2",
    "react": "16.3.1",
    "react-native": "^0.55.4",
    "react-native-firebase": "^4.3.8",
    "react-native-vector-icons": "^5.0.0",
    "react-navigation": "^2.11.2"
  }
}

为说明目的添加了屏幕截图

Screenshot added for illustration purpose

推荐答案

似乎有多种原因导致这种情况发生.我尝试在我的模拟器上运行其他应用程序,重新启动我的模拟器,甚至尝试删除构建文件夹并从头开始重建,但这些方法都没有解决问题.

It seems there are multiple reasons why this could happen. I tried to run other apps on my simulator, restarted my simulator and even tried to delete the build folders and rebuild from scratch, but none of these approaches solved the issue.

最终奏效的是重新启动我一直在后台运行的 React Native 调试器.

如果您启用了离线限制,您还可以检查 React Native Debugger 的 Network 选项卡.在某些情况下,禁用它也应该可以解决问题.

You can also check the Network tab of React Native Debugger if you've enabled Offline throttling. Disabling it should also solve the issue in some cases.

这篇关于反应原生下载 javascript 包 100% 卡住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆