VSCODE 「crbug/1173575, non-JS module files deprecated.」が発生してASP.NET Coreがデバックできない
- 作成日 2021.10.11
- ASP.NET Core vscode
- vscode
VSCODEで「crbug/1173575, non-JS module files deprecated.」が発生してASP.NET Coreがデバックできない場合の対処法を記述してます。
環境
- OS windows10 pro
- .NET Core 5.0.401
- VSCODE 1.61.0
エラー全文
「F5」でデバック実行時、以下のエラーが発生してサイトにアクセスできずにデバックができない。
crbug/1173575, non-JS module files deprecated.
chrome上で「このサイトにアクセスできません」と表示されてしまう。
「launch.json」は以下のように作成されてます。
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
対処法
「launch.json」 を以下のように作成し直しました。
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/net5.0/testapp.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
}
]
}
「tasks.json」も作成。
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
フォルダ構成
-
前の記事
Linux ユーザーIDを確認する 2021.10.11
-
次の記事
javascript lodashを使ってシャローコピーとディープコピーを使う 2021.10.12
コメントを書く