9장 메시지 전송 에러 문의 #115
Unanswered
jungahzzzang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
안녕하세요 @jungahzzzang 오타가 있네요 screens/Channel.js 파일에 _handleMessageSend 함수 try {
- await createMessage({ channelId: params.id, message: newMessage });
+ await createMessage({ channelId: route.params.id, message: newMessage });
} components/Button.js return (
<Container
- styled={containerStyle}
+ style={containerStyle}
onPress={onPress}
isFilled={isFilled}
disabled={disabled}
>첫 번째 실패 메시지를 보면 params 변수를 찾을 수 없다고 나타납니다. 따라서, 어딘가 params 변수를 사용하는 코드가 있고 params가 선언되지 않았다는 뜻이니 해당 코드를 찾으면 됩니다. 차분하게 문제가 발생하는 부분의 코드를 확인하면 오타를 찾을 수 있습니다. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
안녕하세요. 441p까지 했는데 메시지 전송이 안 되고 아래와 같은 에러 메시지가 뜹니다ㅠㅠ
그리고 로그아웃 버튼도 빨간색으로 변경이 되지 않습니다ㅠㅠ 이유 알 수 있을까요...?
제 깃허브 주소 함께 첨부하겠습니다. 감사합니다.
https://github.com/jungahzzzang/PJ_ReactNativeStudy/tree/main/JA/react-native-simple-chat
Beta Was this translation helpful? Give feedback.
All reactions