Skip to content

"SFDX: Deploy This Source to Org" command resulting in "Object.groupBy is not a function" output #6669

@wdsking

Description

@wdsking

Summary

Hello, on 21.11.2025 ~17:00 GMT+1 I encountered an issue during metadata deployment using the "SFDX: Deploy This Source to Org" command resulting in an error and following output:

Image

I'm performing the deployment as usual by right clicking current file and selecting the command option, it neither works from the file explorer nor the command palette. It seems like metadata type doesn't matter, it occured on Apex class however I reproduced it on Layouts as well.

It's worth mentioning that earlier that day I was able to use the command successfully and didn't receive any errors.

It may be related to some Windows/WSL updates, I asked my friend who use WSL on one device and macOS on another and he said that the problem also started to appear on his WSL, but not on the macOS. My co-workers who don't use WSL at all haven't encountered such issues yet.

A workaround I found for now is to perform a deployment using SF CLI directly.

Steps To Reproduce:

  1. Right click on .cls file
  2. Select the "SFDX: Deploy This Source to Org" command
  3. Wait for the command to fail and observe the output

Expected result

Metadata is deployed to active Salesforce org successfully.

Actual result

An error occurs and output states:

=== Deployed Source
No results found

Object.groupBy is not a function

Additional information

I've tried upgrading Node version from 18 to 22, reinstalling the CLI, reinstalling the Salesforce Extension Pack. I'm not sure if it's related to the Salesforce Extension Pack version because I've tried to downgrade it and the same issue occured.

Cursor IDE Version:

Image

Salesforce Extension Version in VS Code: 65.5.0

Salesforce CLI Version: @salesforce/cli/2.113.6 wsl-x64 node-v22.21.1

OS and version: WSL2 Ubuntu (Linux 6.6.87.2-microsoft-standard-WSL2)

VS Code version: 1.105.1

Most recent version of the extensions where this was working: 65.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions