pre 프로젝트 중에 '/post' 화면에서 suspense 로 띄운 Loding... 만 뜨고 페이지가 Post 로 안 넘어가면서 갑자기 이런 에러가 떴다
다른 페이지에선 안 뜨는 에러라 찾아보니
https://sudo-minz.tistory.com/100
리액트 uncaught syntaxerror: unexpected token '<' 해결
리액트 uncaught syntaxerror: unexpected token '
sudo-minz.tistory.com
lab.naminsik
lab.naminsik - 개발자 남인식 Lab.
lab.naminsik.com
https://egg-stone.tistory.com/28
[JS]Uncaught SyntaxError: Unexpected token '<'
웹사이트를 만들고나서 개발자모드로 확인하던 도중 오류를 발견하게 되었어. 말그대로 '
egg-stone.tistory.com
https://shanepark.tistory.com/125
<!DOCTYPE html> 에 Uncaught SyntaxError: Unexpected token '<' 뜰때 해결하기
Controller에서 일정 패턴으로 URL을 맵핑 시키고 있었습니다. PathVariable을 적극적으로 이용해서 심플한 url 패턴을 만들어보자! 해서 localhost/project이름/로그인사용자닉네임/사용모듈 ... 으로 depth 구
shanepark.tistory.com
Uncaught SyntaxError: Unexpected token '<' in <!DOCTYPE html> 자문자답 ^0^ - Node.js
https://antdev.tistory.com/32 [NodeJS] npm으로 express, socket.io 모듈 설치 및 웹 서버 구축, 소켓 연결하기 [express와 socket.io을 이용 2019/02/27 - [NodeJS/NodeJS로 간단한 채팅기능 만들기] - [NodeJS] 채팅방UI 구성, 소
iot624.tistory.com
나와 같은 사람들은 많았으나 저 해결 방법들 중 맞는 게 없었다.
콘솔 로그에 codemirror.js 에서 생긴 오류라고 떴는데 이게 토스트 Ui 와 함께 사용하려고 넣은 뷰어였다.
리액트 18 버전에선 안 되는지 에러를 뿜뿜 뿜어내길래 여기서 에러를 띄우는 건가 싶었다.
내 해결 방법은
index.html 에서
<!-- <link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script> -->
적혀 있던 부분을 주석 처리해버리는 거였다.
토스트 UI 랑 뷰어 오류 정말... 진절머리가 난다.