When running the app I am getting the below error any idea why.
?
The above error occurred in the component:
in Login (created by Context.Consumer)
in withRouter(Login) (created by Connect(withRouter(Login)))
in Connect(withRouter(Login)) (created by Context.Consumer)
in Route (created by Navigation)
in Switch (created by Navigation)
in Router (created by BrowserRouter)
in BrowserRouter (created by Navigation)
in Navigation (created by App)
in div (created by App)
in App (created by Connect(App))
in Connect(App)
in Provider
in StrictMode
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.