Debug Log

리엑트 에러) ReferenceError : comst is not defined

밍미a 2022. 9. 6. 10:04
728x90

ReferenceError 를 그대로 직역하면 언급이 잘못됐다~~ 참조할 수 없다~~ 라는 뜻이다. 

친절하게도 comst is not defined라고 되어있다. comst가 정의되지 않았다는 뜻이다.

나는 변수인 const를 잘못써서 comst라고 썼었다.

나중에 또 ReferenceError가 뜨면 혹시 오타난 곳은 없는지 잘 살펴보자..!

 

const를 comst라고 잘못 작성한 내 코드.
ReferenceError가 떴다.