# requireJS and auth0-lock issue

**URL:** <https://community.auth0.com/t/requirejs-and-auth0-lock-issue/7573>\
**Category:** Get Help\
**Tags:** lock-10, requrejs, auth0, angularjs\
**Created:** [July 19, 2017, 3:49am UTC](https://community.auth0.com/t/requirejs-and-auth0-lock-issue/7573 "2017-07-19T03:49:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan.eliastam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jordan.eliastam/32/5451_2.png) [@jordan.eliastam](https://community.auth0.com/u/jordan.eliastam)\
**Post date:** [July 19, 2017, 3:49am UTC](https://community.auth0.com/t/requirejs-and-auth0-lock-issue/7573/1 "2017-07-19T03:49:37Z")

</div>

Our build process is generating an error for `auth0-lock`. It seems to be trying to pull in a file, namely `core.js`. The issue is it is looking for it relative to the root of the application ( **spoiler** : that’s not where it is). I am going to try and set up a map redirect for it, but why is the compiled `lock.js` script pulling in a file from `src/`?

---

<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:** [August 8, 2017, 6:49pm UTC](https://community.auth0.com/t/requirejs-and-auth0-lock-issue/7573/2 "2017-08-08T18:49:10Z")

</div>

Are you still experiencing this issue? If so, please update the question with the exact steps and applicable setup required to reproduce this situation.

---

<div class="post-metadata">

**Author:** ![jordan.eliastam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jordan.eliastam/32/5451_2.png) [@jordan.eliastam](https://community.auth0.com/u/jordan.eliastam)\
**Post date:** [August 8, 2017, 8:53pm UTC](https://community.auth0.com/t/requirejs-and-auth0-lock-issue/7573/3 "2017-08-08T20:53:03Z")

</div>

Using `lock.min.js` solved that problem. I was then able to get it working by hardcoding all the dependencies except `angular-lock`.

Thanks for checking in!

---

<div class="post-metadata">

**Author:** ![jordan.eliastam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jordan.eliastam/32/5451_2.png) [@jordan.eliastam](https://community.auth0.com/u/jordan.eliastam)\
**Post date:** [August 8, 2017, 8:53pm UTC](https://community.auth0.com/t/requirejs-and-auth0-lock-issue/7573/4 "2017-08-08T20:53:03Z")

</div>

Using `lock.min.js` solved that problem. I was then able to get it working by hardcoding all the dependencies except `angular-lock`.

Thanks for checking in!

---

<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/requirejs-and-auth0-lock-issue/7573/5 "2018-03-02T05:55:28Z")

</div>


