Unable to build for Release: ne.props.clone undefined


#1

The app runs fine on Debug build, but when i switch to Release build, it gave the following error:

Environment

https://exp-xde-diagnostics.s3.amazonaws.com/riwu-03f089fd-a30b-48c8-b7ce-7c679b6fff12.tar.gz

ExpoKit iOS

Dependencies

  "dependencies": {
    "@expo/vector-icons": "^6.3.1",
    "axios": "^0.18.0",
    "expo": "^25.0.0",
    "leven": "^2.1.0",
    "moment": "^2.20.1",
    "moment-duration-format": "^2.2.2",
    "react": "16.2.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-material-kit": "^0.5.1",
    "react-native-modal": "^5.0.1",
    "react-native-progress": "^3.4.0",
    "react-native-router-flux": "4.0.0-beta.27",
    "react-native-slider": "^0.11.0",
    "react-redux": "^5.0.6",
    "react-timeout": "^1.0.1",
    "recompose": "^0.26.0",
    "redux": "^3.7.2",
    "redux-persist": "^5.4.0",
    "redux-thunk": "^2.2.0"
  },
  "devDependencies": {
    "@babel/cli": "^7.0.0-beta.35",
    "@babel/preset-env": "^7.0.0-beta.35",
    "babel-eslint": "^8.0.3",
    "babel-plugin-lodash": "^3.3.2",
    "babel-plugin-transform-remove-console": "^6.8.5",
    "babel-preset-react-native": "4.0.0",
    "eslint": "^4.13.0",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.2",
    "eslint-plugin-react": "^7.5.1",
    "prettier-eslint": "^8.3.1",
    "react-native-scripts": "1.11.1",
    "remote-redux-devtools": "^0.5.12",
    "remotedev-server": "^0.2.4"
  }

#2

I’m not sure what ne.props is. Can you try to reproduce in snack.expo.io?


#3

It’s an ExpoKit project. But i figured out the problem: I called process.env.NODE_ENV in the render of the first screen (for debugging purposes). Seems like process gets called before it finishes initialising or something.


closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.