Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

Kimyeongkyung

vs code 빨간 줄 해결하기 본문

카테고리 없음

vs code 빨간 줄 해결하기

yeongk0825 2022. 7. 29. 10:55

해결

node.js - VS Code가 "모듈 'typescript'를 찾을 수 없습니다"를 던지는 이유는 무엇입니까? ts(2307)" 모듈이 있는 동안? - 스택 오버플로 (stackoverflow.com)

 

Why does VS Code throw "Cannot find module 'typescript'. ts(2307)" while the module is there?

I'm using import * as ts from "typescript"; to import typescript in a .ts file. The file runs fine, but VS Code is telling me Cannot find module 'typescript'. ts(2307). Is there any way to suppress

stackoverflow.com

 

F1키 => Open Settings(JSON)

"typescript.validate.enable": false,

추가하여 해결


 

 

.babelrc.js

{
  "plugins": [["styled-components", { "ssr": true, "displayName": false }]],
  "presets": ["next/babel"]
}

 

.eslintrc.json

"next/babel",
"next/core-web-vitals"

추가하여 해결