커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
Map을 이용한 반복문 코드스니펫 복붙했는데....에러가 뜹니다.
[왕초보] 나만의 수익성 앱, 앱개발 종합반
2주차
북마크
홍*환
댓글
4
추천
0
조회수
20
조회수
20
답변 완료

안녕하세요,


2-6주차 map을 이용한 반복문 코드스니펫을 VS코드에 복붙하고 저장했는데, 휴대폰 화면에는 Unexpected token';' 이라고 하단에 나오구요,

VS 코드 터미널에는 다음과 같이 빨간색으로 오류메세지가 나옵니다.

혹시나 해서 프로젝트 전체 삭제하고 다시 처음부터 차근차근 코드스니펫 복붙했는데, 결과가 똑같이 나오네요...뭐가 문제일까요?


Unexpected token ';'

at node_modules\metro-runtime\src\modules\HMRClient.js:null in inject

at node_modules\metro-runtime\src\modules\HMRClient.js:null in injectUpdate

at node_modules\metro-runtime\src\modules\HMRClient.js:null in on$argument_1

at node_modules\metro-runtime\src\modules\vendor\eventemitter3.js:null in emit

at node_modules\metro-runtime\src\modules\HMRClient.js:null in _ws.onmessage

at node_modules\event-target-shim\dist\event-target-shim.js:null in EventTarget.prototype.dispatchEvent    

at node_modules\react-native\Libraries\WebSocket\WebSocket.js:null in _eventEmitter.addListener$argument_1  

at node_modules\react-native\Libraries\vendor\emitter\_EventEmitter.js:null in EventEmitter#emit

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callFunction

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in callFunctionReturnFlushedQueue  




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴