react-native-jwt
react-native-jwt copied to clipboard
Not working with React Native 0.27 on iOS
Hi,
The library is not working with the latest react native version.
The following error shows up:
Object prototype may only be an Object or null
I did some debugging, and I have found that the error is actually triggered when the library loads the "crypto" library and when the crypto library loads the "stream" library.
I'm submitting the issue here as you might know what could be wrong.
The steps I followed to reproduce the error were:
- Create a new test project with react-native init (0.27)
- Installed this library following the instructions.
- Requiring the library - require('react-native-jwt') - on index.ios.js file.
Thanks, Leo
I get the same issue. EDIT: also doesn't work on 2.6.2.
I have same problem.
Changes by commit https://github.com/facebook/react-native/commit/ee5a1deb0b00e46170e3f5e4f51c484c30cafc95 changed the way deps are looked up on required which is causing issues with the rn-nodeify hack. I'm investigating to see if there a fix for it available.
The module is trying to resolve Stream for readable-stream as an empty object instead of returning stream-browserify which is what pre 0.27 used to do and is causing the inherits library to freak out
I've noticed this issue on the RN 0.31.0
@gabceb anything?
having the same issue in 44.2.. this issue is really old? Does this lib stop working with newer RN versions or am I missing something?