Hello,
I am using quasar framework to develop a SPA.
In order to use Management API v2 explained here I install auth0 using shell “npm install --save auth0” in addition I call Auth0 Management API with “var ManagementClient = require(‘auth0’).ManagementClient;” which is the simplest part of documentation.
After that, there are some compile errors.
"Failed to compile with 4 errors
This dependency was not found:
- dns in ./node_modules/pac-resolver/dnsResolve.js, ./node_modules/pac-resolver/isInNet.js and 2 others"
I try to resolve this with “npm install --save dns” but I receive more errors “Error: Cannot find module ‘net’ at webpackEmptyContext”.
The dependencies in package.json are
“dependencies”: {
“@auth0/auth0-spa-js”: “^1.8.1”,
“@quasar/extras”: “^1.0.0”,
“auth0”: “^2.26.0”,
“axios”: “^0.18.1”,
“quasar”: “^1.0.0”,
“vue-i18n”: “^8.0.0”,
“vue-page-transition”: “^0.2.2”
},
The library @auth0/auth0-spa-js is to handle the login and the library auth0 that has just been installed, is to manager users data.
Can anyone through light to this issue?
Thanks in advance.