在EXPO中从开发模式切换到生产模式后,找不到变量a

时间:2019-05-22 10:02:12

标签: react-native expo production

我已经使用expo开发了一个移动应用程序。在开发模式下一切正常。当我切换到生产模式时,出现错误“找不到变量a”,并且我不知道如何找到它,因为错误没有提示,正如您从以下link的图像中看到的那样

这是我的app.json:

"expo": {
  "name": "my-app-name",
  "slug": "my-app-slug",
  "privacy": "public",
  "sdkVersion": "32.0.0",
  "platforms": [
    "ios",
    "android"
  ],
  "version": "1.0.0",
  "orientation": "portrait",
  "icon": "./assets/icon.png",
  "splash": {
    "image": "./assets/splash.png",
    "resizeMode": "contain",
    "backgroundColor": "#ffffff"
  },
  "updates": {
    "fallbackToCacheTimeout": 0
  },
  "assetBundlePatterns": [
    "**/*"
  ],
  "ios": {
    "supportsTablet": true,
    "bundleIdentifier": "my-bundle-identifier"
  },
  "android": {
    "package": "my-bundle-identifier"
  },
  "description": ""
}

这是我的package.json:

{
  "main": "node_modules/expo/AppEntry.js",
  "name": "ioApp",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject"
  },
  "dependencies": {
    "buffer": "^5.0.6",
    "did-jwt": "^0.1.1",
    "eth-signer": "^0.3.4",
    "ethr-did-resolver": "^0.2.0",
    "expo": "^32.0.0",
    "js-sha256": "^0.9.0",
    "jsonwebtoken": "^8.5.1",
    "lodash": "^4.17.11",
    "mnid": "^0.1.3",
    "moment": "^2.24.0",
    "mori": "^0.3.2",
    "native-base": "^2.12.1",
    "prop-types": "^15.7.2",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-native-elements": "^1.1.0",
    "react-native-uport-signer": "^1.2.1",
    "react-native-vector-icons": "^6.4.2",
    "react-navigation": "^3.5.1",
    "react-redux": "^6.0.1",
    "redux": "^4.0.1",
    "redux-persist": "^5.10.0",
    "redux-saga": "^1.0.2",
    "stream": "0.0.2",
    "string": "^3.3.3",
    "url-parse": "^1.4.4",
    "util": "^0.11.1"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },
  "private": true,
  "engines": {
    "yarn": "YARN NO LONGER USED - use npm instead."
  }
}

当前,我已经使用expo设置了另一个项目,并且我正试图复制错误,一个接一个地添加库,以查看问题是否出在添加的库或代码中。

您能提出解决这个问题的更明智的方法吗?

0 个答案:

没有答案