×
Unhandled Rejection (TypeError): Cannot read property 'push' of undefined
(anonymous function)
C:/Users/rlaqu/OneDrive/Desktop/boiler-plate/client/src/components/views/RegisterPage/RegisterPage.js:50
542 | };
543 | dispatch(Object(_action_user_action__WEBPACK_IMPORTED_MODULE_2__["registerUser"])(body)).then(response => {
544 | if (response.payload.success) {
> 545 | props.history.push('/login');
| ^ 546 | } else {
547 | alert('failed to sign up');
548 | }
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.
회원가입결과 true가 리턴되는건 확인했는데요 리다이렉트부분이 먹통입니다 ㅠㅠ
뭐가 문제일까요??