0

应用程序成功启动,无需启动开发服务器。

当我们手动启动调试服务器时,它每次都会显示不同类型的依赖错误。

我试图手动启动调试器

react-native start

但它显示使用的插件错误。该应用程序与

react-native run-android

上面的(react-native run-android)命令将在模拟器上启动应用程序但不启动开发服务器我需要调试应用程序我该怎么做?

在这里,我还附上了 Package.json 文件。

{
  "name": "Pocomos",
  "version": "1.2.0",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "clear-cache": "watchman watch-del-all; npm cache clean --force; yarn cache clean; rm -rf $TMPDIR/react-*; rm -rf $TMPDIR/haste-*; rm -rf $TMPDIR/metro-*; rm -rf android/app/build; rm -rf android/build; rm -rf $HOME/.gradle/caches/",
    "bundle-android": "react-native bundle --reset-cache --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",
    "lint:eslint": "eslint --ignore-path .gitignore -- .",
    "lint:eslint:fix": "eslint --ignore-path .gitignore --fix",
    "lint:staged": "lint-staged"
  },
  "lint-staged": {
    "*.js": [
      "yarn run lint:eslint:fix",
      "git add --force"
    ],
    "*.json": [
      "prettier --write",
      "git add --force"
    ]
  },
  "pre-commit": "lint:staged",
  "dependencies": {
    "@react-native-community/geolocation": "^2.0.2",
    "@react-native-community/netinfo": "^4.1.3",
    "axios": "^0.19.0",
    "base-64": "^0.1.0",
    "lodash": "^4.17.15",
    "moment": "^2.24.0",
    "native-base": "^2.13.4",
    "react": "16.8.6",
    "react-native": "0.60.4",
    "react-native-calendars": "^1.203.0",
    "react-native-credit-card": "^0.1.9",
    "react-native-elements": "^1.2.7",
    "react-native-extended-stylesheet": "^0.12.0",
    "react-native-gesture-handler": "^1.4.0",
    "react-native-google-maps-directions": "^2.1.0",
    "react-native-image-resizer": "1.0.1",
    "react-native-keyboard-manager": "^4.0.13-9",
    "react-native-maps": "^0.26.1",
    "react-native-modal-datetime-picker": "^7.6.0",
    "react-native-offline": "^5.0.0",
    "react-native-orientation-locker": "^1.1.6",
    "react-native-phone-call": "^1.0.9",
    "react-native-signature-capture": "^0.4.12",
    "react-native-sortable-list": "^0.0.24",
    "react-native-splash-screen": "^3.2.0",
    "react-native-step-indicator": "^0.0.11",
    "react-native-swipe-list-view": "^2.0.0",
    "react-native-swipeable-row": "^0.8.1",
    "react-native-wheel-pick": "^1.1.0",
    "react-navigation": "^3.11.1",
    "react-redux": "^7.1.0",
    "redux": "^4.0.4",
    "redux-persist": "^5.10.0",
    "redux-promise-middleware": "^6.1.1",
    "redux-thunk": "^2.3.0",
    "rn-fetch-blob": "^0.12.0",
    "shortid": "^2.2.14"
  },
  "devDependencies": {
    "@babel/core": "^7.5.5",
    "@babel/runtime": "^7.5.5",
    "babel-eslint": "^10.0.2",
    "eslint": "6.1.0",
    "eslint-config-airbnb": "17.1.1",
    "eslint-config-airbnb-base": "13.2.0",
    "eslint-config-prettier": "6.0.0",
    "eslint-plugin-import": "^2.18.2",
    "eslint-plugin-jsx-a11y": "6.2.3",
    "eslint-plugin-prettier": "3.1.0",
    "eslint-plugin-react": "7.14.3",
    "eslint-plugin-redux-saga": "1.0.0",
    "husky": "3.0.1",
    "lint-staged": "9.2.1",
    "metro-react-native-babel-preset": "^0.55.0",
    "pre-commit": "1.2.2",
    "prettier": "1.18.2",
    "react-native-cli": "^2.0.1",
    "react-native-dotenv": "^0.2.0"
  }
}
4

0 回答 0