# Error: "Cannot read property 'isAvailable' of undefined"

**URL:** <https://community.auth0.com/t/error-cannot-read-property-isavailable-of-undefined/7376>\
**Category:** Get Help\
**Tags:** tier1, ionic2\
**Created:** [July 4, 2017, 4:16pm UTC](https://community.auth0.com/t/error-cannot-read-property-isavailable-of-undefined/7376 "2017-07-04T16:16:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aparna.thaker](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@aparna.thaker](https://community.auth0.com/u/aparna.thaker)\
**Post date:** [July 4, 2017, 4:16pm UTC](https://community.auth0.com/t/error-cannot-read-property-isavailable-of-undefined/7376/1 "2017-07-04T16:16:37Z")

</div>

I have created app using ionic 2 and trying to test it by running ionic lab command to test it in the ionic emulator. Also uploaded it to the ionic view and tested in my android mobile but still it is throwing the error: “Cannot read property ‘isAvailable’ of undefined”.  
What can be the issue?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 13, 2017, 7:00pm UTC](https://community.auth0.com/t/error-cannot-read-property-isavailable-of-undefined/7376/2 "2017-07-13T19:00:01Z")

</div>

According to [this issue](https://github.com/auth0/auth0-cordova/issues/41) that reports the same error message this may be due to the unavailability of the `cordova-plugin-safariviewcontroller`. Ensure that you correctly performed the necessary steps to install that plugin. In addition, it also seems that in some testing methodologies that may be an unavoidable constraint because the plugin might not be available so also check on the device like you did after ensuring that the plugin was correctly configured.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/error-cannot-read-property-isavailable-of-undefined/7376/3 "2018-03-02T05:55:09Z")

</div>


