Introvertuous / react-native-mqtt

Mqtt client for react native.
MIT License
156 stars 31 forks source link

Red box error: Object is not a constructor (evaluating 'new Storage(options)') #3

Closed ckwilhelm closed 7 years ago

ckwilhelm commented 7 years ago

I'm getting a show-stopping error in XCode and Android Studio after upgrading from 1.1.4 to 1.1.5. The red box error reads:

Object is not a constructor (evaluating 'new Storage(options)')

The version of react-native-storage included as a dependency is the same across versions, and the version of react-native we're using is also the same, so it doesn't appear that the problem comes from react-native's AsyncStorage. We're initializing react_native_mqtt exactly as shown in the README example. Error disappears after locking the version to 1.1.4, blowing away the node_modules directory and running npm install.

Introvertuous commented 7 years ago

sorry about that, just cut a new release that should work as expected (1.1.6).