[에러해결] Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.

김준서·2024년 9월 25일
0

에러해결

목록 보기
1/1

발생 시점

vscode extension 을 만들기 위해 익스텐션 베이스를 설치하였으나 설치 직후 console.log()에 빨간줄이 생김

해결 방법

  1. npm install @types/node --save-dev
  2. tsconfig.json 에서 "lib": ["ES2022"] -> "lib": ["ES2022", "DOM"]

원인

미상

0개의 댓글