Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system


#1

1511531593476 - Origin: Worker (PID 2712)
[Error] 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’.
at native (C:\Users\Pulego-PC\Documents\TshwaneMobileApp\tshwanesafety\FlatApp\node_modules\socketcluster-server\node_modules\uws\uws.js:38:19)
at Object. (C:\Users\Pulego-PC\Documents\TshwaneMobileApp\tshwanesafety\FlatApp\node_modules\socketcluster-server\node_modules\uws\uws.js:42:3)
at Object. (C:\Users\Pulego-PC\Documents\TshwaneMobileApp\tshwanesafety\FlatApp\node_modules\socketcluster-server\node_modules\uws\uws.js:565:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)

using the latest SDK followed the instructions to update


#2

Hi! Can you provide some more information about what you’re trying to do? Is this showing up while you’re compiling an ExpoKit app?


#3

Upgrading from expo version 20.0.0 to 23.0.0
react version 16.0.0
react-native 0.50.1 as specified in expo doc
native-base 2.3.2
expo 23.0.0


#4

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’.```

{
  "name": "ParkeraApp",
  "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": "https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz",
    "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"
  }
}
{
  "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
  }
}

#5

Using the Expo branch of React-Native (RN 0.50.3) caused this error for me. That’s

https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz

See also, issue on Stack: