Fullstack MERN application that allows users to browse, search, and favourite movies using the MovieDB API.
GNU General Public License v3.0
3
stars
0
forks
source link
Showing Error in Adduser.js please help me #15
Open
pilli-sukumar opened 1 year ago
import { Component } from "react"; import axios from "axios"; import { Redirect } from "react-router-dom"; import { withAuth0 } from "@auth0/auth0-react"; import Spinner from '../Spinner/Spinner'
class AddUser extends Component{
}
export default withAuth0(AddUser);
//Error
Cannot read properties of undefined (reading 'sub') TypeError: Cannot read properties of undefined (reading 'sub') at AddUser.addUserToDB (http://localhost:3000/static/js/bundle.js:2163:29) at AddUser. (http://localhost:3000/static/js/bundle.js:2191:16)
at callCallback (http://localhost:3000/static/js/bundle.js:39500:16)
at commitUpdateQueue (http://localhost:3000/static/js/bundle.js:39518:13)
at commitLayoutEffectOnFiber (http://localhost:3000/static/js/bundle.js:47548:17)
at commitLayoutMountEffects_complete (http://localhost:3000/static/js/bundle.js:48662:13)
at commitLayoutEffects_begin (http://localhost:3000/static/js/bundle.js:48651:11)
at commitLayoutEffects (http://localhost:3000/static/js/bundle.js:48597:7)
at commitRootImpl (http://localhost:3000/static/js/bundle.js:50507:9)
at commitRoot (http://localhost:3000/static/js/bundle.js:50387:9)