Recently I was working on a Power Apps Code App project and tried pushing my changes to Dataverse using the Power Platform CLI.

pac code push

But instead of pushing the app, I got the following error.

Error during CLI execution:
TypeError: Cannot read properties of undefined (reading 'httpClient')

Reason and Fix:

  • I started getting the issue because the Power Platform Tools extension of VS Code was set to ‘Auto update’ and a new version had been installed a few hours earlier.
  • To fix the issue, I reverted the extension to the previous version.
Steps:
  • From VS Code > Extensions > Open Power Platform Tools extension
  • Choose Uninstall > Install Specific Version…
  • Select the previous version, which is 2.0.131 in this case.
  • Ensure the version changes as shown below.
  • Close and reopen VS Code.
  • Execute the pac code push

🙂

Advertisements
Advertisements

Leave a comment