microsoft / vscode-azurestaticwebapps

Azure Static Web Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps
MIT License
88 stars 35 forks source link

There is an error in "start angular-basic" terminal when debugging the project #687

Closed v-xinda closed 2 years ago

v-xinda commented 2 years ago

OS: Win10 Build Version: 20220511.1 CLI Version: 1.0.0-preview

Repro Steps:

  1. Clone https://github.com/staticwebdev/angular-basic -> Open the project in VS Code.
  2. Open VS Code terminal and run "npm install".
  3. Go to the "Run and Debug" menu -> Select "Azure Static Web Apps…" -> Select "SWA: Run angular-basic" -> Click the "Run" button.
  4. Check whether there is no error in start angular-basic terminal.

Expect: There is no error in start angular-basic terminal.

Actual: There is an error in start angular-basic terminal. image

More Info:

  1. This issue doesn't reproduce when installing static-web-apps-cli 0.8.3.
  2. This issue also reproduces for below projects: https://github.com/alexweininger/vue-basic-api https://github.com/alexweininger/angular-basic-api https://github.com/alexweininger/nextjs-basic-api https://github.com/alexweininger/svelte-basic-api https://github.com/alexweininger/angular-basic-dotnet
  3. This issue doesn't reproduce for the ReactSite project. https://github.com/alexweininger/ReactSite
alexweininger commented 2 years ago

This is caused by the argument being renamed from --devserver-timeout to --server-timeout.

I've asked the SWA CLI team if they can revert this change https://github.com/Azure/static-web-apps-cli/pull/437#discussion_r871557757

alexweininger commented 2 years ago

They reverted the change and this has been fixed