Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with React Native 0.27 on iOS #3

Open
leonfs opened this issue Jun 14, 2016 · 6 comments
Open

Not working with React Native 0.27 on iOS #3

leonfs opened this issue Jun 14, 2016 · 6 comments

Comments

@leonfs
Copy link

leonfs commented Jun 14, 2016

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

@spacesuitdiver
Copy link

spacesuitdiver commented Jun 20, 2016

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

@vincent-the
Copy link

I have same problem.

@gabceb
Copy link

gabceb commented Jul 4, 2016

Changes by commit facebook/react-native@ee5a1de 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

@rayzor65
Copy link

I've noticed this issue on the RN 0.31.0

@avioli
Copy link

avioli commented Sep 12, 2016

@gabceb anything?

@aaronbuchanan
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants