# Problems building the react-native sample

**URL:** <https://community.auth0.com/t/problems-building-the-react-native-sample/119512>\
**Category:** Get Help\
**Tags:** react-native-auth0, sdks-quickstarts\
**Created:** [October 27, 2023, 4:49am UTC](https://community.auth0.com/t/problems-building-the-react-native-sample/119512 "2023-10-27T04:49:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.bloch](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@eric.bloch](https://community.auth0.com/u/eric.bloch)\
**Post date:** [October 27, 2023, 4:49am UTC](https://community.auth0.com/t/problems-building-the-react-native-sample/119512/1 "2023-10-27T04:49:20Z")

</div>

Trying to get the react-native quickstart app running. It builds cleanly, but when it starts up it seems there is some problem with metro/bundle/babel - I am not sure: but the console and UI both show an error like this below which suggests some bad JS build configuration or the like. StackOverflow had a few suggestions that didn’t work for me. Any help here would be great as I can’t get very far if this sample doesn’t work ☹

`error: index.js: /Users/XXX/repos/auth0-react-native-sample/00-Login-Hooks/index.js: Cannot read properties of undefined (reading 'addHelper')`

Thanks!  
Eric

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 27, 2023, 11:45pm UTC](https://community.auth0.com/t/problems-building-the-react-native-sample/119512/3 "2023-10-27T23:45:09Z")

</div>

Hey @eric.bloch welcome to the community!

I’ll need to pull down the sample and test myself, but is this specific to Android, iOS or both?

---

<div class="post-metadata">

**Author:** ![eric.bloch](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@eric.bloch](https://community.auth0.com/u/eric.bloch)\
**Post date:** [October 30, 2023, 6:33pm UTC](https://community.auth0.com/t/problems-building-the-react-native-sample/119512/4 "2023-10-30T18:33:41Z")

</div>

It was iOS specific. (Android build fails for other reasons 🙂 ) Fwiw, when i tried running with some versbose/debug flags from the command line via npx or npm (not sure now sorry!), somehow, magically things worked and now they work even without the debug/verbose flags. I lost my command line history sadly, so can’t share wha’happen.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 30, 2023, 10:33pm UTC](https://community.auth0.com/t/problems-building-the-react-native-sample/119512/5 "2023-10-30T22:33:46Z")

</div>

Hey @eric.bloch thanks for confirming! I’m glad to hear things are working as expected now 🙂

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 17, 2023, 12:03am UTC](https://community.auth0.com/t/problems-building-the-react-native-sample/119512/7 "2023-11-17T00:03:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
