When Deploying anything from VSCode I get the same error everytime. I have created a new project in VSCode using SFDX.
I am able to authorize and retrieve from org, but anytime I deploy I get the same error:
TypeError: Cannot read property 'success' of undefined
when running from VS Code context menu
ERROR running force:source:deploy: Cannot read property 'success' of undefined
when running from CLI
- this happens regardless of if it is from vs code context menu or the CLI
- this is in brand new apex classes that have been generated and nothing added and also ones with actual code (meaning its not code errors)
- I have tried: creating a new project, reinstalling java, reinstalling the extension pack. All had the same result.
EDIT: Issue ended up being that I was connecting to a Production Environment instead of a dev sandbox! You can't directly deploy to Proe, so I just had to swap the org. Thanks for the help all!