Javascript

vscode 디버깅 에러 crbug/1173575, non-JS module files deprecated

킹king 2023. 8. 4. 13:56
반응형

 

crbug/1173575, non-JS module files deprecated.

 

이와 같은 에러가 뜨며 되지 않는다면 launch.json을 이렇게 바꿔주면 된다.

 

1. launch.json 파일 수정

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "localhost에 대해 Chrome 시작",
      // "url": "http://localhost:8080",
      // "webRoot": "${workspaceFolder}"
      "file": "${workspaceFolder}/index.html"
    }
  ]
}

url, webRoot는 주석처리하고 file 부분을 다음과 같이 써주면 된다.

모든 게시물(특히 과거 게시물)은 잘못된 방법으로 처리한것을 좋다고 써놨을 수 있습니다. 참고만 하시고 틀린게 있다면 댓글 남겨주세요~