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

TypeError: Cannot read properties of undefined (reading 'prototype') #79

Closed
CamilleGuillory opened this issue Oct 4, 2023 · 12 comments
Closed

Comments

@CamilleGuillory
Copy link

I cannot launch any command, I always get:
TypeError: Cannot read properties of undefined (reading 'prototype')

I tried to reinstall everything from scratch but I always get this issue.

@nvuillam
Copy link
Collaborator

nvuillam commented Oct 4, 2023

@CamilleGuillory this is a known issue of salesforce/cli with some plugins -> forcedotcom/cli#2508

Please can you try the 2 following commands ?

sfdx plugins:uninstall lightning-flow-scanner
sfdx plugins:install lightning-flow-scanner

@CamilleGuillory
Copy link
Author

Hi @nvuillam
I tried that but still the same (even tried a full reset of my laptop...)
image

@RubenHalman
Copy link
Member

RubenHalman commented Oct 4, 2023

@CamilleGuillory
can you try running sfdx doctor? maybe thatll give us some information

@CamilleGuillory
Copy link
Author

@RubenHalman
It seems ok:
image

Do you need the JSON as well?

@RubenHalman
Copy link
Member

@RubenHalman
It seems ok:
image

Do you need the JSON as well?

I am wondering if it shows the plugin installed in your cli, as well as maybe any overview if core sfdx sf packages. My apologies, I am also trying to understand the issue still: you are only experiencing this with the new sf CLI and did not experience this with sfdx right? I am thinking there might be certain sfdx packages we will need to include in the scanner to resolve this if that makes sense.

@CamilleGuillory
Copy link
Author

I do have the plugin listed:

cguillory@cguillo-ltmq66m XXXXX % sf plugins
lightning-flow-scanner 2.14.0
packaging 1.26.3
sfdmu 4.30.0
sfdx-essentials 2.12.0
sfdx-git-delta 5.26.0
sfdx-hardis 4.6.4
texei-sfdx-plugin 2.1.2

Uninstalled JIT Plugins:
community 2.4.2
custom-metadata 2.2.2
dev 1.2.0
devops-center 1.2.0
env 2.2.1
functions 1.22.3
signups 1.5.0
@salesforce/sfdx-plugin-lwc-test 1.1.0
@salesforce/sfdx-scanner 3.16.0

Running sf flow:scan or sfdx flow:scan give me the same issue

@nvuillam
Copy link
Collaborator

nvuillam commented Oct 4, 2023

@CamilleGuillory please could you run :

sf version --verbose --json and provide the result ?

DEBUG=* sfdx flow:scan --dev-debug (in git bash if possible), then provide the result ?

It will allow me to provide more info to sf cli developers so they can fix forcedotcom/cli#2508

@CamilleGuillory
Copy link
Author

CamilleGuillory commented Oct 4, 2023

Sure @nvuillam
here it is:

sf version --verbose --json

{
  "cliVersion": "@salesforce/cli/2.10.2",
  "architecture": "darwin-arm64",
  "nodeVersion": "node-v18.15.0",
  "osVersion": "Darwin 23.0.0",
  "shell": "zsh",
  "rootPath": "/Users/cguillory/.local/share/sf/client/2.10.2-1c35561",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.3.8 (core)",
    "@oclif/plugin-commands 2.2.25 (core)",
    "@oclif/plugin-help 5.2.19 (core)",
    "@oclif/plugin-not-found 2.4.1 (core)",
    "@oclif/plugin-plugins 3.7.1 (core)",
    "@oclif/plugin-search 0.0.22 (core)",
    "@oclif/plugin-update 3.2.3 (core)",
    "@oclif/plugin-version 1.3.10 (core)",
    "@oclif/plugin-warn-if-update-available 2.1.0 (core)",
    "@oclif/plugin-which 2.2.32 (core)",
    "@salesforce/cli 2.10.2 (core)",
    "apex 2.3.15 (core)",
    "auth 2.8.17 (core)",
    "data 2.5.9 (core)",
    "deploy-retrieve 1.18.0 (core)",
    "info 2.6.43 (core)",
    "limits 2.3.34 (core)",
    "login 1.2.31 (core)",
    "marketplace 0.2.2 (core)",
    "org 2.10.8 (core)",
    "packaging 1.26.3 (user)",
    "schema 2.3.26 (core)",
    "settings 1.4.29 (core)",
    "sobject 0.2.7 (core)",
    "source 2.10.34 (core)",
    "telemetry 2.3.3 (core)",
    "templates 55.5.12 (core)",
    "trust 2.6.13 (core)",
    "user 2.3.32 (core)",
    "lightning-flow-scanner 2.14.0 (user)",
    "sfdmu 4.30.0 (user)",
    "sfdx-essentials 2.12.0 (user)",
    "sfdx-git-delta 5.26.0 (user)",
    "sfdx-hardis 4.6.4 (user)",
    "texei-sfdx-plugin 2.1.2 (user)"
  ]
}

DEBUG=* sfdx flow:scan --dev-debug

/Users/cguillory/.local/share/sf/client/bin/sf flow:scan --dev-debug
SF_BINPATH=/Users/cguillory/.local/share/sf/client/bin/sf /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/bin/node /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/bin/run flow:scan --dev-debug
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561 +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/oclif.manifest.json +0ms
  config:@salesforce/cli using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/oclif.manifest.json +0ms
  config reading user plugins pjson /Users/cguillory/.local/share/sf/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/package.json +0ms
  config loading plugins [
  { name: 'sfdx-hardis', tag: 'latest', type: 'user' },
  { name: 'sfdx-essentials', tag: 'latest', type: 'user' },
  { name: 'sfdmu', tag: 'latest', type: 'user' },
  { name: 'sfdx-git-delta', tag: 'latest', type: 'user' },
  { name: 'texei-sfdx-plugin', tag: 'latest', type: 'user' },
  { name: '@salesforce/plugin-packaging', tag: 'latest', type: 'user' },
  { name: 'lightning-flow-scanner', tag: 'latest', type: 'user' }
] +2ms
  config loadJSON /Users/cguillory/.local/share/sf/package.json/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/package.json/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/package.json/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/package.json/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/package.json/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/sfdx-git-delta +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-git-delta/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/@salesforce/plugin-packaging +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/@salesforce/plugin-packaging/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/sfdx-hardis +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/sfdx-essentials +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-essentials/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/sfdmu +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdmu/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/texei-sfdx-plugin +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/texei-sfdx-plugin/package.json +0ms
  config reading user plugin /Users/cguillory/.local/share/sf/node_modules/lightning-flow-scanner +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/lightning-flow-scanner/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-git-delta/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/texei-sfdx-plugin/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/lightning-flow-scanner/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/@salesforce/plugin-packaging/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-essentials/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdmu/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/node_modules/sfdx-essentials/.oclif.manifest.json +0ms
  config:sfdx-git-delta using manifest from /Users/cguillory/.local/share/sf/node_modules/sfdx-git-delta/oclif.manifest.json +0ms
  config:lightning-flow-scanner using manifest from /Users/cguillory/.local/share/sf/node_modules/lightning-flow-scanner/oclif.manifest.json +0ms
  config:texei-sfdx-plugin using manifest from /Users/cguillory/.local/share/sf/node_modules/texei-sfdx-plugin/oclif.manifest.json +0ms
  config:@salesforce/plugin-packaging using manifest from /Users/cguillory/.local/share/sf/node_modules/@salesforce/plugin-packaging/oclif.manifest.json +0ms
  config:sfdx-hardis using manifest from /Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/oclif.manifest.json +0ms
  config:sfdmu using manifest from /Users/cguillory/.local/share/sf/node_modules/sfdmu/oclif.manifest.json +0ms
  config:sfdx-essentials using manifest from /Users/cguillory/.local/share/sf/node_modules/sfdx-essentials/.oclif.manifest.json +0ms
  config loading plugins [
  '@oclif/plugin-autocomplete',
  '@oclif/plugin-commands',
  '@oclif/plugin-help',
  '@oclif/plugin-not-found',
  '@oclif/plugin-plugins',
  '@oclif/plugin-search',
  '@oclif/plugin-update',
  '@oclif/plugin-version',
  '@oclif/plugin-warn-if-update-available',
  '@oclif/plugin-which',
  '@salesforce/plugin-apex',
  '@salesforce/plugin-auth',
  '@salesforce/plugin-data',
  '@salesforce/plugin-deploy-retrieve',
  '@salesforce/plugin-info',
  '@salesforce/plugin-limits',
  '@salesforce/plugin-login',
  '@salesforce/plugin-marketplace',
  '@salesforce/plugin-org',
  '@salesforce/plugin-schema',
  '@salesforce/plugin-settings',
  '@salesforce/plugin-sobject',
  '@salesforce/plugin-source',
  '@salesforce/plugin-telemetry',
  '@salesforce/plugin-templates',
  '@salesforce/plugin-trust',
  '@salesforce/plugin-user'
] +8ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-autocomplete +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-autocomplete/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-commands +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-commands/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-update +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-update/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-telemetry +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-telemetry/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-help +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-help/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-not-found +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-not-found/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-plugins +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-plugins/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-search +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-search/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-version +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-version/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-warn-if-update-available +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-warn-if-update-available/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-which +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-which/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-apex +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-apex/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-auth +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-auth/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-data +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-data/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-deploy-retrieve +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-deploy-retrieve/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-info +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-info/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-limits +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-limits/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-login +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-login/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-marketplace +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-marketplace/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-org +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-org/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-schema +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-schema/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-settings +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-settings/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-sobject +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-sobject/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-source +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-source/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-templates +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-templates/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-trust +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-trust/package.json +0ms
  config reading core plugin /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-user +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-user/package.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-commands/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-update/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-telemetry/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-plugins/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-not-found/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-search/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-which/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-apex/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-data/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-auth/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-version/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-limits/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-deploy-retrieve/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-help/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-info/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-marketplace/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-org/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-login/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-schema/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-sobject/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-source/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-user/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-settings/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-templates/oclif.manifest.json +0ms
  config loadJSON /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-trust/oclif.manifest.json +0ms
  config:@oclif/plugin-update using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-update/oclif.manifest.json +0ms
  config:@oclif/plugin-commands using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-commands/oclif.manifest.json +0ms
  config:@oclif/plugin-warn-if-update-available using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json +0ms
  config:@oclif/plugin-autocomplete using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json +0ms
  config:@oclif/plugin-search using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-search/oclif.manifest.json +0ms
  config:@oclif/plugin-not-found using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-not-found/oclif.manifest.json +0ms
  config:@oclif/plugin-plugins using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-plugins/oclif.manifest.json +0ms
  config:@salesforce/plugin-telemetry using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-telemetry/oclif.manifest.json +0ms
  config:@salesforce/plugin-apex using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-apex/oclif.manifest.json +0ms
  config:@oclif/plugin-which using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-which/oclif.manifest.json +0ms
  config:@salesforce/plugin-data using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-data/oclif.manifest.json +0ms
  config:@salesforce/plugin-auth using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-auth/oclif.manifest.json +0ms
  config:@oclif/plugin-help using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-help/oclif.manifest.json +0ms
  config:@salesforce/plugin-info using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-info/oclif.manifest.json +0ms
  config:@salesforce/plugin-deploy-retrieve using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-deploy-retrieve/oclif.manifest.json +0ms
  config:@salesforce/plugin-login using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-login/oclif.manifest.json +0ms
  config:@salesforce/plugin-marketplace using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-marketplace/oclif.manifest.json +0ms
  config:@oclif/plugin-version using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-version/oclif.manifest.json +0ms
  config:@salesforce/plugin-sobject using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-sobject/oclif.manifest.json +0ms
  config:@salesforce/plugin-org using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-org/oclif.manifest.json +0ms
  config:@salesforce/plugin-user using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-user/oclif.manifest.json +0ms
  config:@salesforce/plugin-settings using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-settings/oclif.manifest.json +0ms
  config:@salesforce/plugin-templates using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-templates/oclif.manifest.json +0ms
  config:@salesforce/plugin-source using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-source/oclif.manifest.json +0ms
  config:@salesforce/plugin-schema using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-schema/oclif.manifest.json +0ms
  config:@salesforce/plugin-trust using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-trust/oclif.manifest.json +0ms
  config:@salesforce/plugin-limits using manifest from /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-limits/oclif.manifest.json +0ms
  config config done +0ms
  sf                        OS: +0ms
  sf                  platform: darwin +0ms
  sf              architecture: arm64 +0ms
  sf                   release: 23.0.0 +0ms
  sf                     shell: zsh +0ms
  sf                      NODE: +0ms
  sf                   version: 18.15.0 +0ms
  sf                       CLI: +0ms
  sf                   version: 2.10.2 +0ms
  sf                   channel: stable +0ms
  sf                       bin: sf +0ms
  sf                      data: /Users/cguillory/.local/share/sf +0ms
  sf                     cache: /Users/cguillory/Library/Caches/sf +0ms
  sf                    config: /Users/cguillory/.config/sf +0ms
  sf                       ENV: +0ms
  sf                SF_BINPATH: /Users/cguillory/.local/share/sf/client/bin/sf +0ms
  sf             SF_REDIRECTED: 1 +1ms
  sf                  SF_DEBUG: 1 +0ms
  sf                    SF_ENV: development +0ms
  sf              NODE_OPTIONS: <not set> +0ms
  sf     SF_AUTOUPDATE_DISABLE: true +0ms
  sf          SF_COMPILE_CACHE: <not set> +0ms
  sf     SF_DISABLE_AUTOUPDATE: true +0ms
  sf              SF_INSTALLER: <not set> +0ms
  sf           SF_NPM_REGISTRY: <not set> +0ms
  sf    SF_UPDATE_INSTRUCTIONS: Use "npm update --global @salesforce/cli" to update npm-based installations. +0ms
  sf                      ARGS: +0ms
  sf                         0: /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/bin/node +0ms
  sf                         1: /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/bin/run +0ms
  sf                         2: flow:scan +0ms
  config start init hook +1ms
  sf:sfdx-hardis:hooks:init TypeError: Cannot read properties of undefined (reading 'prototype')
  sf:sfdx-hardis:hooks:init     at Object.<anonymous> (/Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/node_modules/@salesforce/core/lib/connection.js:28:48)
  sf:sfdx-hardis:hooks:init     at Module._compile (node:internal/modules/cjs/loader:1254:14)
  sf:sfdx-hardis:hooks:init     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
  sf:sfdx-hardis:hooks:init     at Module.load (node:internal/modules/cjs/loader:1117:32)
  sf:sfdx-hardis:hooks:init     at Module._load (node:internal/modules/cjs/loader:958:12)
  sf:sfdx-hardis:hooks:init     at Module.require (node:internal/modules/cjs/loader:1141:19)
  sf:sfdx-hardis:hooks:init     at require (node:internal/modules/cjs/helpers:110:18)
  sf:sfdx-hardis:hooks:init     at Object.<anonymous> (/Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/node_modules/@salesforce/core/lib/authInfo.js:25:22)
  sf:sfdx-hardis:hooks:init     at Module._compile (node:internal/modules/cjs/loader:1254:14)
  sf:sfdx-hardis:hooks:init     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) +0ms
  sf:@oclif/plugin-update:hooks:init start (require) /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-update/lib/hooks/init.js +0ms
  sf:@oclif/plugin-warn-if-update-available:hooks:init start (require) /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@oclif/plugin-warn-if-update-available/lib/hooks/init/check-update.js +0ms
  sf:@salesforce/plugin-info:hooks:init start (require) /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-info/lib/hooks/init/init_doctor.js +0ms
  sf:@salesforce/plugin-settings:hooks:init start (require) /Users/cguillory/.local/share/sf/client/2.10.2-1c35561/node_modules/@salesforce/plugin-settings/lib/hooks/init/load_config_meta.js +0ms
  sf:sfdx-hardis:hooks:init start (require) /Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/lib/hooks/init/check-upgrade.js +13ms
  sf:@oclif/plugin-update:hooks:init done +2ms
  sf:@salesforce/plugin-settings:hooks:init done +2ms
  sf:sfdx-hardis:hooks:init done +0ms
  sf:sfdx-hardis:hooks:init TypeError: Cannot read properties of undefined (reading 'prototype')
  sf:sfdx-hardis:hooks:init     at Object.<anonymous> (/Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/node_modules/@salesforce/core/lib/connection.js:28:48)
  sf:sfdx-hardis:hooks:init     at Module._compile (node:internal/modules/cjs/loader:1254:14)
  sf:sfdx-hardis:hooks:init     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
  sf:sfdx-hardis:hooks:init     at Module.load (node:internal/modules/cjs/loader:1117:32)
  sf:sfdx-hardis:hooks:init     at Module._load (node:internal/modules/cjs/loader:958:12)
  sf:sfdx-hardis:hooks:init     at Module.require (node:internal/modules/cjs/loader:1141:19)
  sf:sfdx-hardis:hooks:init     at require (node:internal/modules/cjs/helpers:110:18)
  sf:sfdx-hardis:hooks:init     at Object.<anonymous> (/Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/node_modules/@salesforce/core/lib/authInfo.js:25:22)
  sf:sfdx-hardis:hooks:init     at Module._compile (node:internal/modules/cjs/loader:1254:14)
  sf:sfdx-hardis:hooks:init     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) +2ms
  sf:@salesforce/plugin-info:hooks:init done +6ms
  sf:sfdx-hardis:hooks:init TypeError: Cannot read properties of undefined (reading 'prototype')
  sf:sfdx-hardis:hooks:init     at Object.<anonymous> (/Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/node_modules/@salesforce/core/lib/connection.js:28:48)
  sf:sfdx-hardis:hooks:init     at Module._compile (node:internal/modules/cjs/loader:1254:14)
  sf:sfdx-hardis:hooks:init     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
  sf:sfdx-hardis:hooks:init     at Module.load (node:internal/modules/cjs/loader:1117:32)
  sf:sfdx-hardis:hooks:init     at Module._load (node:internal/modules/cjs/loader:958:12)
  sf:sfdx-hardis:hooks:init     at Module.require (node:internal/modules/cjs/loader:1141:19)
  sf:sfdx-hardis:hooks:init     at require (node:internal/modules/cjs/helpers:110:18)
  sf:sfdx-hardis:hooks:init     at Object.<anonymous> (/Users/cguillory/.local/share/sf/node_modules/sfdx-hardis/node_modules/@salesforce/core/lib/authInfo.js:25:22)
  sf:sfdx-hardis:hooks:init     at Module._compile (node:internal/modules/cjs/loader:1254:14)
  sf:sfdx-hardis:hooks:init     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) +2ms
  sf:@oclif/plugin-warn-if-update-available:hooks:init done +7ms
  config init hook done +433ms
  config runCommand flow:scan [] +0ms
  perf Init Time: 446.5377ms +0ms
  perf Config Load Time: 44.1522ms +0ms
  perf Command Load Time: 0.0000ms +0ms
  perf Execution Time: 446.5357ms +0ms
  perf Core Plugin Load Time: 13.1603ms +0ms
  perf User Plugin Load Time: 7.7532ms +0ms
  perf Linked Plugin Load Time: 0.0000ms +0ms
  perf Plugin Load Times: +0ms
  perf   @salesforce/plugin-limits: 10.7070ms +0ms
  perf   @oclif/plugin-version: 10.3568ms +0ms
  perf   @salesforce/plugin-schema: 10.1573ms +0ms
  perf   @oclif/plugin-help: 10.0390ms +0ms
  perf   @salesforce/plugin-source: 9.5131ms +0ms
  perf   @salesforce/plugin-settings: 9.3535ms +0ms
  perf   @salesforce/plugin-org: 9.3162ms +0ms
  perf   @oclif/plugin-autocomplete: 9.2685ms +0ms
  perf   @salesforce/plugin-deploy-retrieve: 9.1873ms +0ms
  perf   @salesforce/plugin-trust: 9.0145ms +0ms
  perf   @oclif/plugin-commands: 8.9315ms +0ms
  perf   @salesforce/plugin-auth: 8.8525ms +0ms
  perf   @salesforce/plugin-login: 8.8154ms +0ms
  perf   @oclif/plugin-not-found: 8.8060ms +0ms
  perf   @oclif/plugin-plugins: 8.7762ms +0ms
  perf   @salesforce/plugin-marketplace: 8.7302ms +0ms
  perf   @salesforce/plugin-templates: 8.6545ms +0ms
  perf   @oclif/plugin-search: 8.5554ms +0ms
  perf   @salesforce/plugin-sobject: 8.4430ms +0ms
  perf   @salesforce/plugin-info: 8.4300ms +0ms
  perf   @oclif/plugin-which: 8.3827ms +0ms
  perf   @salesforce/plugin-data: 8.3368ms +0ms
  perf   @oclif/plugin-update: 8.2601ms +0ms
  perf   @salesforce/plugin-apex: 8.2367ms +0ms
  perf   @oclif/plugin-warn-if-update-available: 8.1275ms +0ms
  perf   @salesforce/plugin-user: 8.0515ms +0ms
  perf   sfdx-hardis: 6.1737ms +0ms
  perf   sfdx-essentials: 6.1492ms +0ms
  perf   @salesforce/plugin-telemetry: 5.9703ms +0ms
  perf   sfdmu: 5.5545ms +0ms
  perf   @salesforce/plugin-packaging: 4.0785ms +0ms
  perf   texei-sfdx-plugin: 3.8477ms +0ms
  perf   sfdx-git-delta: 3.4870ms +0ms
  perf   lightning-flow-scanner: 2.9782ms +0ms
  perf Hook Run Times: +0ms
  perf   init: +0ms
  perf     total: 433.3319ms +0ms
  perf     sfdx-hardis(./lib/hooks/init/log): 414.8917ms +0ms
  perf     @oclif/plugin-update(./lib/hooks/init): 225.9287ms +0ms
  perf     @oclif/plugin-warn-if-update-available(./lib/hooks/init/check-update): 222.0152ms +0ms
  perf     @salesforce/plugin-info(./lib/hooks/init/init_doctor.js): 220.1734ms +0ms
  perf     @salesforce/plugin-settings(./lib/hooks/init/load_config_meta): 13.7965ms +0ms
  perf     sfdx-hardis(./lib/hooks/init/check-upgrade): 12.7756ms +0ms
  perf     sfdx-hardis(./lib/hooks/init/check-local-sfdx-hardis-files): 2.3416ms +0ms
  perf     sfdx-hardis(./lib/hooks/init/start-ws-client): 1.9824ms +0ms
    TypeError: Cannot read properties of undefined (reading 'prototype')


@CamilleGuillory
Copy link
Author

@nvuillam
I uninstalled sfdx-hardis (via sf plugins:uninstall sfdx-hardis) and now flow scanner is working fine.

@nvuillam
Copy link
Collaborator

nvuillam commented Oct 4, 2023

Sfdx-hardis is great , and should not be uninstalled 😂

But as a workaround, ok... I'll let u know when sf cli will have fixed their big thanks to your inputs :)

@RubenHalman
Copy link
Member

RubenHalman commented Oct 5, 2023

Thanks @CamilleGuillory for reporting. It seems to me this must be unrelated to the scanner itself and probably to be taken on in the Hardis repo.

@nvuillam
Copy link
Collaborator

@CamilleGuillory the problem with sfdx-hardis is solved :)

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

3 participants