Auth0 Home Blog Docs

requireJS and auth0-lock issue

lock-10
auth0
angularjs
requrejs

#1

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/?


#2

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


#3

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!


#4

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!


#5