I'm trying to use npm-auth0.
I keep getting this error.
./node_modules/auth0/src/management/JobsManager.js:4:0
Module not found: Can't resolve 'fs'
null
I have tried to resolve by uninstalling and reinstalling also I have tried a module.export alteration which I seen on another stack question with no success.
import { AuthenticationClient, ManagementClient } from "auth0";
const Profile = () => {
const auth0 = new ManagementClient({
domain: process.env.AUTH0_ISSUER_BASE_URL,
clientId: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
scope: "read:users update:users",
});