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

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

    For the ones who are using Visual Studio 2019, today I was trying Node.js in the "master" VS2019. I moved server.ts to the src folder so that my js output would be in lib folder.

    After that I tarted getting that message. Here are the changes I made in my project file to have it working.

    lib\server.js
    lib
    lib
    

    I hope this is not out of topic, it could help VS IDE users.

提交回复
热议问题