Command sfdx plugins:install sfdx-git-delta fails in github action
Note Before you submit your issue, make sure that:
- You're using the latest version of Salesforce CLI.
- You've searched both open and closed issues for related posts.
- You've used the
doctorcommand to diagnose common issues.- You understand that GitHub Issues don't adhere to any agreement or SLA.
- If you require immediate assistance, use official channels such as Salesforce Customer Support.
Summary
Command sfdx plugins:install sfdx-git-delta fails in github action with error TypeError: Class extends value undefined is not a constructor or null
Steps To Reproduce
See in linked issue here )
Expected result
sfdx-git-delta installs successfully
Actual result
install fails with error: TypeError: Class extends value undefined is not a constructor or null
Additional information
System Information
PASTE_VERSION_OUTPUT_HERE
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
Hello @tothszabolcs :wave: It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).
A few more things to check:
- Make sure you've provided detailed steps to reproduce your issue.
- A repository that clearly demonstrates the bug is ideal.
- Make sure you've installed the latest version of Salesforce CLI. (docs)
- Better yet, try the
rcornightlyversions. (docs)
- Better yet, try the
- Try running the
doctorcommand to diagnose common issues. - Search GitHub for existing related issues.
Thank you!
Hello @tothszabolcs, we have the exact same error in our pipeline. Thank you for creating this Issue.
hi @tothszabolcs / @JGN5496 - I followed the same commands used in your CI, and it worked for me
➜ npm i -g @salesforce/cli
changed 733 packages in 8s
143 packages are looking for funding
run `npm fund` for details
➜ dreamhouse-agents git:(main) ✗ hub:(GLOBAL - DevHub) scratch:(AgentTestingProd)
➜ echo y | sf plugins install sfdx-git-delta
? sfdx-git-delta isn't signed by Salesforce. Only install the plugin if you trust its creator. Do you want to continue the installation? yes
Because you approved this plugin, you can avoid future installation confirmations by adding the plugin to the unsignedPluginAllowList.json file. For details, see https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_allowlist.htm.
Finished digital signature check.
@salesforce/cli: Installing plugin sfdx-git-delta@latest... installed v6.23.0
Hi @WillieRuemmele. Unfortunately, I still have the error and have no idea why. There are more detailed steps in the linked issue. Did you also try those? If yes, and you still cannot reproduce the issue, then do you have any pointers as to where I should look? Thank you in advance for your help!
hi @tothszabolcs - I've confirmed it's an issue with node 25
➜ node -v
v25.0.0
➜ dreamhouse-agents git:(main) ✗ hub:(GLOBAL - DevHub)
➜ sf plugins install sfdx-git-delta
TypeError: Cannot read properties of undefined (reading 'prototype')
➜ dreamhouse-agents git:(main) ✗ hub:(GLOBAL - DevHub)
➜ nvm use 24
Now using node v24.4.1 (npm v11.4.2)
➜ dreamhouse-agents git:(main) ✗ hub:(GLOBAL - DevHub)
➜ sf plugins install sfdx-git-delta
? sfdx-git-delta isn't signed by Salesforce. Only install the plugin if you trust its creator. Do you want to continue the installation? yes
Because you approved this plugin, you can avoid future installation confirmations by adding the plugin to the unsignedPluginAllowList.json file. For details, see https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_allowlist.htm.
Finished digital signature check.
Hi @WillieRuemmele
Sorry for the late response, there was a long weekend, so I couldn't check the solution until now. Thank you for the response and the help, I reverted the node install to version 24 and it is working again.
Are there any plans to making this work with node 25?
yes, we'll be working on adopting 25
If someone stuck with this - I use NVM so I had to delete v25 of node from ~/.nvm/versions/node - otherwise somehow it was defaulting to v25 after each new shell launch.
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.
This issue has been linked to a new work item: W-20159075