React-native-mapbox-gl: [Error] Requiring unknown module "Subscribable"

Created on 11 Apr 2016  路  10Comments  路  Source: nitaliano/react-native-mapbox-gl

I intstalled module according to instructions. Then I imported module in index.android.js file. After building an app 2 errors occured:
Requiring unknown module "Subscribable". If you are sure the module is there, try restarting the packager or running "npm install".
and
Module AppRegistry is not a registered callable module.

Restarting packager and running "npm install" didn't help.

Most helpful comment

Confirmed, digging into this now. A quick bandaid can be applied with:

var Subscribable = require('../react-native/Libraries/Components/Subscribable');

in /node_modules/react-native-mapbox-gl/index.android.js.

Not totally sure what the issue is, but for some reason when you require react native, Subscribable is not shipped with it.

All 10 comments

Same problem here. It works fine with [email protected] but threw an error on 0.23.

Same here, also tried "react-native": "^0.24.0-rc4"

Confirmed, digging into this now. A quick bandaid can be applied with:

var Subscribable = require('../react-native/Libraries/Components/Subscribable');

in /node_modules/react-native-mapbox-gl/index.android.js.

Not totally sure what the issue is, but for some reason when you require react native, Subscribable is not shipped with it.

Thank you! this helped.

Same problem on 0.23.

@bsudekum helped,thanks a lot :beer: i think is because the npm. npm 3+ change their package manager Algorithm.

Hello,
Same problem with RN 0.24 released few days ago.
@MrPluto I run npm 2.14.12 with the same issue

However, callingrequire('Subscribable') into my project worked well.

Hello,
Same problem with [email protected] [email protected] [email protected]

Downgrade to [email protected] and all work well

++

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kristfal picture kristfal  路  3Comments

yaduc picture yaduc  路  3Comments

Craytor picture Craytor  路  3Comments

EugenePisotsky picture EugenePisotsky  路  4Comments

glennverschooren picture glennverschooren  路  4Comments