samedi 6 janvier 2018

Expo error after ejecting CRNA Compilation of µWebSockets has failed

Got exactly this issue after ejecting from Expo (with ExpoKit). Worrisome that an expo based project behaves like this when you try to go into production.

Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'.

package.json

{
  "name": "OurApp",
  "version": "0.0.1",
  "private": true,
  "devDependencies": {
    "babel-eslint": "^8.0.3",
    "eslint": "^4.13.1",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
    "eslint-plugin-react": "^7.5.1",
    "jest-expo": "^23.0.0",
    "react-native-scripts": "1.8.1",
    "react-test-renderer": "16.0.0",
    "remotedev-rn-debugger": "^0.8.3"
  },
  "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": "node node_modules/jest/bin/jest.js --watch",
    "postinstall": "remotedev-debugger --hostname lcalhost --port 5678 --injectserver",
    "eslint": "./node_modules/.bin/eslint"
  },
  "remotedev": {
    "hostname": "localhost",
    "port": 5678
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^6.2.1",
    "axios": "^0.17.1",
    "expo": "^23.0.0",
    "lodash": "^4.17.4",
    "prop-types": "^15.6.0",
    "react": "16.0.0",
    "react-native": "http://ift.tt/2kRWLfj",
    "react-native-elements": "^0.18.5",
    "react-native-maps": "^0.19.0",
    "react-navigation": "^1.0.0-beta.19",
    "react-navigation-redux": "^0.1.0",
    "react-redux": "^5.0.6",
    "redux": "^3.7.2",
    "redux-logger": "^3.0.6",
    "redux-promise": "^0.5.3",
    "redux-thunk": "^2.2.0",
    "remote-redux-devtools": "^0.5.12"
  }
}

app.json

{
  "expo": {
    "isDetached": false,
    "privacy": "unlisted",
    "sdkVersion": "23.0.0",
    "orientation": "portrait",
    "primaryColor": "#ffde00",
    "name": "OurApp",
    "description": "Desc",
    "icon": "./resources/icon.png",
    "version": "0.0.1",
    "slug": "our-app",
    "scheme": "ourapp",
    "ios": {
      "bundleIdentifier": "se.comp.expo",
      "config": {
        "googleMapsApiKey": "key"
      },
      "buildNumber": "1.0.0",
      "isRemoteJSEnabled": true,
      "supportsTablet": false,
      "associatedDomains": [
        "myDomain.com"
      ]
    },
    "android": {
      "package": "se.comp.expo",
      "versionCode": 1,
      "config": {
        "googleMaps": {
          "apiKey": "key"
        }
      },
      "permissions": [
        "CAMERA",
        "ACCESS_FINE_LOCATION"
      ]
    },
    "notification": {
      "icon": "./resources/icon_notify.png",
      "color": "#ffde00",
      "androidMode": "collapse",
      "androidCollapsedTitle": "#{unread_notifications} new"
    },
    "loading": {
      "icon": "./resources/icon.png",
      "backgroundColor": "#000000",
      "backgroundImage": "./resources/splash.png",
      "hideExponentText": true
    },
    "splash": {
      "backgroundColor": "#000000",
      "image": "./resources/splash.png",
      "resizeMode": "cover"
    },
    "androidStatusBar": {
      "barStyle": "dark-content",
      "backgroundColor": "#ffde00"
    },
    "facebookAppId": "id",
    "facebookDisplayName": "OurApp",
    "facebookScheme": "fbId",
    "androidShowExponentNotificationInShellApp": true
  }
}

Aucun commentaire:

Enregistrer un commentaire