카테고리 없음
vs code 빨간 줄 해결하기
yeongk0825
2022. 7. 29. 10:55
해결
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"
추가하여 해결