function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael Fahey 31Michael Fahey 31 

Visual Studio: SFDX: Authorize an Org - getting error message ERROR running force:auth:web:login: Cannot read property 'create' of undefined

I have installed VS including Salesforce Extenstion and Salesforce CLI as extensions. 
I have created a new project  (SFDX: Create Project with Manifest) 

When I try to authotize an org from using the VS Command Pallette
- SFDX: Authorize an Org 
-  Selected with Project Default   (test.salesforce.com  in sfdx-project.json and tried sandbox

I am getting the errror message below back in VS
16:09:30.897 sfdx force:auth:web:login --setalias ADDEV --instanceurl https://test.salesforce.com --setdefaultusername
ERROR running force:auth:web:login:  Cannot read property 'create' of undefined
16:09:42.631 sfdx force:auth:web:login --setalias ADDEV --instanceurl https://test.salesforce.com --setdefaultusername
 ended with exit code 1


I have googled and tried what was suggested and recommended with no success. 
Can you assistance?


 
AbhinavAbhinav (Salesforce Developers) 
Hi Michael,

Have you tried suggestion provides in below link?

https://salesforce.stackexchange.com/questions/258697/error-running-forceprojectcreate-cannot-read-property-create-of-undefined

Thanks!