[VScode]Unexpected token ';' / no stack 오류



 vscode 터미널에 SyntaxError: Unexpected end of JSON input while parsing near '' at JSON.parse(<anonymous>) 라는 메세지가 뜨면서 앱 작동이 되지 않는다.

프로젝트의 data.json 파일이 저장이 안되었을 가능성이 있으니, data.json 파일을 저장하고 휴대폰 앱을 재실행하면 잘 작동하는 것을 볼 수 있다. 코딩할때는 수시로 저장하는 습관을 들이는 것이 좋겠다. 

  +++++++

  The app does not work with the message "SyntaxError: Unexpected end of JSON input while parsing near '' at JSON.parse(<anonymous>)" in the vscode terminal.

There is a possibility that the data.json file of the project was not saved, so if you save the data.json file and run the phone app again, you can see that it works well. It is good to get into the habit of saving frequently when coding.

댓글

이 블로그의 인기 게시물

[R studio] pkg 설치 오류시 대처법

[Apple Developer 조치 필요: Distribution 인증서가 30일 후에 만료됨] 메일이 왔을때 대처법

[Unable to find bundled Java version =>Mac Flutter Android Studio Arctic Fox 2020.3.1] flutter doctor -v 실행시 안드로이드 스튜디오 오류 메시지 해결