반응형
타진
개발 그라운드
타진
전체 방문자
오늘
어제
  • 분류 전체보기 (136)
    • 프로그래밍 (65)
      • Java (28)
      • Android (1)
      • Web (19)
      • Web-Spring (12)
      • R (5)
      • Angular (0)
    • 운영체제 (17)
      • Linux (14)
      • Docker(vmware) (3)
    • 클라우드 (4)
      • aws (0)
      • aws_handson (4)
    • 개발문제해결 (25)
      • Exception (12)
      • 알고리즘 문제풀이 (13)
    • 그 외 개발관련 (23)
    • 일상 (1)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • transit gateway peering
  • GIT
  • transit_gateway
  • 키보드매핑
  • docker
  • 빠른 시작 끄기
  • 라이젠
  • angular cli
  • ubuntu terminal
  • alt tab
  • Github CLI
  • 빠른 시작 켜기
  • github
  • handson
  • vmmem
  • wsl_update_x64
  • docker ps
  • wsl2
  • 정올알고리즘 정올 알고리즘
  • stackset
  • docker desktop
  • cfn
  • 4700u
  • jdk14
  • 일어키보드
  • AWS
  • github actions
  • 크로미움 엣지
  • chromium edge
  • 문법 체크

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
타진

개발 그라운드

Brackets 자바스크립트(javascript) 첫 console.log 에러
개발문제해결/Exception

Brackets 자바스크립트(javascript) 첫 console.log 에러

2018. 8. 31. 23:33
반응형



1. 'console' was used before it was defined.


2. ERROR: Unexpected console statement.[no-console]


3. ERROR: 'console' is not defined.[no-undef]



Brackets으로 처음 console.log를 하면 나올 수 있는 에러들이다.


웹을 뒤져서 해결했기에 다른 사람들은 고생하지 않길 바라는 마음에 적는다.


어떤 원리로 고쳐지는 지는 나도 모른다.









1. 'console' was used before it was defined.




맨 처음에 주석


/*jslint devel: true */


를 붙여준다.



https://stackoverflow.com/questions/40816924/jslint-throwing-error-when-using-console-log


이쪽에서 찾았다.











2. ERROR: Unexpected console statement.[no-console]



마찬가지로 주석을 붙여준다


/* eslint-disable no-console */






https://code.i-harness.com/ko/q/20a1666


이쪽에서 찾았다.










3. ERROR: 'console' is not defined.[no-undef]




/*eslint no-undef: "error"*/

/*eslint-env node*/



를 붙여준다.




https://eslint.org/docs/rules/no-undef


이쪽에서 확인할 수 있다.





다 붙여넣으면 정상 작동함을 확인할 수 있을 것이다.




반응형
저작자표시 비영리 변경금지 (새창열림)

'개발문제해결 > Exception' 카테고리의 다른 글

React 에러 - Cannot find file: .. does not match the corresponding name on disk  (1) 2020.09.21
에러 The goal you specified requires a project to execute but there is no POM  (3) 2018.03.22
스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"  (0) 2018.03.11
    '개발문제해결/Exception' 카테고리의 다른 글
    • React 에러 - Cannot find file: .. does not match the corresponding name on disk
    • 에러 The goal you specified requires a project to execute but there is no POM
    • 스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"
    • 에러 - Optional int parameter is present but cannot be translated into a null value
    타진
    타진
    vulnerable1324@gmail.com

    티스토리툴바