“Attribute 'program' does not exist” for basic node.js project

前端 未结 12 1334
南方客
南方客 2021-01-31 13:08

I created simple node.js application (source code from here https://azure.microsoft.com/en-us/blog/visual-studio-code-and-azure-app-service-a-perfect-fit/)

var h         


        
12条回答
  •  死守一世寂寞
    2021-01-31 13:36

    I also encountered this issue because of where VS Code put the .vscode directory containing the launch.json file. It put it up one directory so I had to add the directory to the path as defined in the launch.json file:

    "program": "${workspaceRoot}/myDir/app.js",

    I hope this helps.

提交回复
热议问题