I forked the Auth0 repo (for Angular) according to their github and I ran npm install on the root folder. At the end of the process webpack outputs this message: Cannot find module './auth0-variables' enter image description here Did anyone face same issue follow this tutorial and managed to overcome it?
Asked
Active
Viewed 409 times
1
-
2Why are you cloning the repo and not managing the dependency via npm (adding it to the package.json)? – Christian Benseler Jun 29 '17 at 20:53
-
You'll need to create auth0-variables when you download the repo from the QuickStarts it auto-fills that information for you. – ShrekOverflow Jun 29 '17 at 21:00
-
@ChristianBenseler I am not sure why. I am new programmer and I'm following the steps pointed out by the tutorial. – Daniel Jun 29 '17 at 21:34
-
@Shrek how should I create these 'auth0-variables' that you mentioned? Can you describe a bit more please? – Daniel Jun 29 '17 at 21:35
-
1Always manage dependencies via npm/package.json – Christian Benseler Jun 29 '17 at 21:40
-
Possible duplicate of [How to create a file of constants in Javascript?](https://stackoverflow.com/questions/3152477/how-to-create-a-file-of-constants-in-javascript) – ShrekOverflow Jun 30 '17 at 21:47
-
This is not a dependency. The repo I cloned is a tutorial repo. – Daniel Jun 30 '17 at 22:46
-
I don't see how my question regarding the Auth0 tutorial would ever be a duplicate of "file of constants" mentioned. Anywayw, I'll come up with the solution this weekend. – Daniel Jun 30 '17 at 22:49
-
You'll need to create a constants file, an example of that is in the repo. – ShrekOverflow Jun 30 '17 at 22:51
-
https://github.com/auth0-samples/auth0-angular-samples/blob/master/01-Login/src/app/auth/auth0-variables.ts.example – ShrekOverflow Jun 30 '17 at 22:52
1 Answers
1
You could find the answers in their readme.md file on the login folder. We have to create auth0-variable.ts with your client id and domain
https://github.com/auth0-samples/auth0-angular-samples/tree/master/01-Login

Ragavan Rajan
- 4,171
- 1
- 25
- 43