Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.plugins.filter is not a function #54

Open
jjavier2015 opened this issue Nov 17, 2023 · 5 comments
Open

config.plugins.filter is not a function #54

jjavier2015 opened this issue Nov 17, 2023 · 5 comments

Comments

@jjavier2015
Copy link

jjavier2015 commented Nov 17, 2023

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.

@kjjovanovic
Copy link

Any update for this?

@eltoroit
Copy link
Owner

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
Copy link
Owner

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

@kjjovanovic
Copy link

@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

@willian-matheus23
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants