I have error TypeError: undefined is not a function, js engine: hermes after update from 2.0.0 to 2.1.0. Only on Android and only if Debug is off.
Update: release apk also crash on start.
Minimum steps to reproduce:
react-native init (I tested on version 0.61.2 and 0.61.3 version)import 'react-native-auth0';@Bardiamist - Thanks for the report here and apologies for the trouble. Can you give us a bit more to go on here? Possibly sample code that's causing the issue or a line number where that error is coming from?
Just error on start.

But I can see what error in jsrsasign/lib/jsrsasign.js (thanks Reactotron)

That error occurs only if Hermes is enabled.
Minimum steps to reproduce:
react-native init (I tested on version 0.61.2 and 0.61.3 version)import 'react-native-auth0';I see jsrsasign dependency was added in this commit and this not works on Hemes.
Please fix it. Hermes is very good thing and will enabled by default in future.
@Bardiamist I've downgraded to 2.0.0 for hermes support.
For the record:
[email protected] + Hermes = β[email protected] + Hermes + Debug mode = πhmmm @2.1.0 is not going to work either.
jsrsasign is a dependency
2.1.0
npm list jsrasign
β¬ [email protected]
βββ [email protected]
2.0.0
npm list jsrsasign
/Users/mike/projects/temp-app
βββ (empty)
@Widcket can you take a look at this please
Thanks everyone for the information. This issue is in our radar, and weβre currently evaluating options.
Having the same problem with 2.1.0. Only downgrading to 2.0.0 fixed it
@Bardiamist & all, I've put a PR that replaces jsrsasign. I've tested it and an Hermes enabled app works fine now. We'll be making a new release next week but in the meantime I'd love you have your feedback.
You can try the branch code by installing the package this way:
yarn add https://github.com/auth0/react-native-auth0.git#temp-idtv-2
I checked, that works for my application.
hmmm @2.1.0 is not going to work either.
jsrsasign is a dependency
2.1.0
npm list jsrasign β¬ [email protected] βββ [email protected]2.0.0
npm list jsrsasign /Users/mike/projects/temp-app βββ (empty)
Thanks a lot :)
We removed jsrassign in our project and crash issue is fixed.
Most helpful comment
That error occurs only if Hermes is enabled.
Minimum steps to reproduce:
react-native init(I tested on version 0.61.2 and 0.61.3 version)import 'react-native-auth0';I see
jsrsasigndependency was added in this commit and this not works on Hemes.Please fix it. Hermes is very good thing and will enabled by default in future.