vscode-azureappservice icon indicating copy to clipboard operation
vscode-azureappservice copied to clipboard

Error: `Cannot read properties of undefined (reading 'createClient')`

Open nturinski opened this issue 3 years ago • 5 comments
trafficstars

If you try to deploy from the command palette and have a appService.defaultWebAppToDeploy setting, you're hit with this error.

nturinski avatar Jul 14 '22 23:07 nturinski

Note: this only applies if you have never opened the tree view before

nturinski avatar Jul 21 '22 22:07 nturinski

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.

stevemurch avatar Oct 07 '22 04:10 stevemurch

Do you have azureFunctions.defaultFunctionAppToDeploy set? If you do, clearing that setting may help with this issue.

nturinski avatar Oct 10 '22 18:10 nturinski

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.

stevemurch avatar Oct 12 '22 00:10 stevemurch

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?

image

nturinski avatar Oct 14 '22 16:10 nturinski

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

alexweininger avatar Apr 03 '23 23:04 alexweininger