react-native-jwt icon indicating copy to clipboard operation
react-native-jwt copied to clipboard

Not working with React Native 0.27 on iOS

Open leonfs opened this issue 8 years ago • 6 comments

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:

  1. Create a new test project with react-native init (0.27)
  2. Installed this library following the instructions.
  3. Requiring the library - require('react-native-jwt') - on index.ios.js file.

Thanks, Leo

leonfs avatar Jun 14 '16 08:06 leonfs

I get the same issue. EDIT: also doesn't work on 2.6.2.

spacesuitdiver avatar Jun 20 '16 23:06 spacesuitdiver

I have same problem.

vincent-the avatar Jul 04 '16 20:07 vincent-the

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

gabceb avatar Jul 04 '16 23:07 gabceb

I've noticed this issue on the RN 0.31.0

rayzor65 avatar Aug 10 '16 22:08 rayzor65

@gabceb anything?

avioli avatar Sep 12 '16 00:09 avioli

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?

aaronbuchanan avatar Sep 23 '17 17:09 aaronbuchanan