I have followed the documentation for setting up an Okta Sign-In Widget in React: Sign in to your SPA with the embedded Okta Sign-In Widget | Okta Developer
I am getting the error "Failed to compile.
./src/Login.js
Attempted import error: ‘Redirect’ is not exported from ‘react-router-dom’.".
My decencies are as followed:
“dependencies”: {
“@okta/okta-auth-js”: “^4.5.1”,
“@okta/okta-react”: “^4.1.0”,
“@okta/okta-signin-widget”: “^5.2.1”,
“@testing-library/jest-dom”: “^5.11.8”,
“@testing-library/react”: “^11.2.2”,
“@testing-library/user-event”: “^12.6.0”,
“history”: “^5.0.0”,
“react”: “^17.0.1”,
“react-dom”: “^17.0.1”,
“react-router-dom”: “^6.0.0-beta.0”,
“react-scripts”: “4.0.1”,
“web-vitals”: “^0.2.4”
},
I suspect it is because the 'Redirectcomponent has been removed from the
react-router-dom` version 6.
Is there a way around this?
Thank you in advance!!