ETCopyData icon indicating copy to clipboard operation
ETCopyData copied to clipboard

config.plugins.filter is not a function

Open jjavier2015 opened this issue 2 years ago • 5 comments

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.

jjavier2015 avatar Nov 17 '23 16:11 jjavier2015

Any update for this?

kjjovanovic avatar Jan 14 '24 19:01 kjjovanovic

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.

  1. Add this to your dependencies: "sfdx-cli": "^7.209.6"
  2. do an npm install
  3. Execute ./node_modules/sfdx-cli/bin/run ETCopyData ... rather than sfdx ETCopyData ...

eltoroit avatar Jan 15 '24 17:01 eltoroit

This is exactly, what I am doing in this repo: https://github.com/eltoroit/temp-ETScratchOrgsStarter-/tree/ETCopyData_Backward

eltoroit avatar Jan 15 '24 17:01 eltoroit

@eltoroit thanks, I added the dependency and ran the npm install. I am now getting this. Screenshot 2024-01-16 at 9 38 07 AM

kjjovanovic avatar Jan 16 '24 15:01 kjjovanovic

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

willian-matheus23 avatar Jan 19 '24 19:01 willian-matheus23