vscode-azureappservice
vscode-azureappservice copied to clipboard
Error: `Cannot read properties of undefined (reading 'createClient')`
If you try to deploy from the command palette and have a appService.defaultWebAppToDeploy setting, you're hit with this error.
Note: this only applies if you have never opened the tree view before
Am running into this as well (v1.8.1 of the VS Code Extension.) Expanding the Azure tree does not fix it. Node project. Just started happening -- very frustrating.
Azure functions Node (TypeScript) Expand Resources (all items) Expand Workspace (all items) Try to publish a function
Get error message. Workaround doesn't work on my machine.
Do you have azureFunctions.defaultFunctionAppToDeploy set? If you do, clearing that setting may help with this issue.
Thanks @nturinski -- I've cleared that and restarted, but unfortunately the problem still persists. I've also tried deleting the .vscode folder and restarting Visual Studio Code and I still get the same problem. Frustrating.
Are you deploying by clicking the cloud button? There was an update in VS Code that is causing this to throw that error that we are currently fixing. For now, could you try deploying from the resources view by right-clicking the App Service app that you are trying to deploy to?

This issue has been fixed by the 0.7.0 release of the Azure Resources extension.