# Auth0Lock or Auth0 must be available constructorName

**URL:** <https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103>\
**Category:** Get Help\
**Tags:** auth0-lock, init, auth0-angular\
**Created:** [January 1, 2018, 9:37pm UTC](https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103 "2018-01-01T21:37:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oren451](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@oren451](https://community.auth0.com/u/oren451)\
**Post date:** [January 1, 2018, 9:37pm UTC](https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103/1 "2018-01-01T21:37:44Z")

</div>

I follow “AngularJS Authentication: Secure Your App With Auth0” tutorial.  
I got that Error “Auth0Lock or Auth0 must be available constructorName”,  
where i call init function with authProvider variable inside angular config method.  
It seems i need to pass a ctr\_variable from the server side to the client side or call ‘require’ in the client side, is it make sense?  
Inside the tutorial the author didn’t add ctr\_variable.  
If yes, how i export it from my server.js?

Versions: angularjs/1.6.5 lock/9.2.2 auth-angular/4.2.7

---

<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:** [January 3, 2018, 8:14pm UTC](https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103/2 "2018-01-03T20:14:18Z")

</div>

Ideally a link to a trimmed down sample application that reproduces the issue would be the best for troubleshooting. Based on the information provided, if you haven’t done so already you should check this [question/answers](https://stackoverflow.com/questions/37624269/auth0-and-angular-error-cannot-initialize-auth0angular-auth0lock-or-auth0-mus) in SO as it seems related.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:19am UTC](https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103/3 "2019-07-25T09:19:06Z")

</div>


