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

前端 未结 12 1573
南方客
南方客 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:59

    It simply means that when you debug the file the app.js file simply doesn't exist and when you perform debugging it shows the error. Here it my way to fix the problem : simply replace the value of program

    "${workspaceRoot}/app.js"

    by

    "${workspaceFolder}/${fileBasenameNoExtension}.js"

    I hope this will solve all of your problems.

提交回复
热议问题