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.
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
Made a pull request over here: https://github.com/mapbox/react-native-mapbox-gl/pull/339
Most helpful comment
Confirmed, digging into this now. A quick bandaid can be applied with:
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,
Subscribableis not shipped with it.