config.plugins.filter is not a function
Hi, I've been using this plugin without issue before. However, when I recently tried to execute the Export or Import command, I encountered this message:
{
"status": 1,
"name": "Type",
"message": "config.plugins.filter is not a function",
"exitCode": 1,
"context": "Export",
"stack": "Type: config.plugins.filter is not a function ....."
}
(node:16448) Warning: Deprecated config name: apiVersion. Please use org-api-version instead.
(Use node --trace-warnings ... to show where the warning was created)
Please note, I used v2.1.1
Thanks a lot.
Any update for this?
Hi. Thanks for reaching out. The plugin was created with the SFDX architecture, and you may be trying to execute it with the SF (or the new SFDX) architecture. There is a hack that I am doing for now, which consists of installing SFDX locally in the project and executing it with that version. This is until I get the time to update this to run with the SF architecture.
- Add this to your dependencies:
"sfdx-cli": "^7.209.6" - do an npm install
- Execute
./node_modules/sfdx-cli/bin/run ETCopyData ...rather thansfdx ETCopyData ...
This is exactly, what I am doing in this repo: https://github.com/eltoroit/temp-ETScratchOrgsStarter-/tree/ETCopyData_Backward
@eltoroit thanks, I added the dependency and ran the npm install. I am now getting this.
Hi @kjjovanovic use the following command to be able to run the plugin from node modules
./node_modules/sfdx-cli/bin/run plugins:install etcopydata