Skip to content

Fix TypeError: opts.getPluginsList is not a function#777

Closed
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-typeerror-opts-getpluginslist
Closed

Fix TypeError: opts.getPluginsList is not a function#777
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-typeerror-opts-getpluginslist

Conversation

Copy link

Copilot AI commented Mar 10, 2026

@oclif/plugin-plugins@^5 requires @oclif/core@^4.8.0, but the top-level dependency was pinned to 2.11.7. npm installed a nested @oclif/core@4.x inside plugin-plugins, causing a config object from v2 to be passed to v5 code that expects v4's getPluginsList().

Dependency updates

  • @oclif/core: 2.11.7^4
  • @oclif/plugin-not-found: ^2.3.26^3 (v3 also requires @oclif/core@^4.8.0)

Breaking API changes handled

ux.table() removed in @oclif/core@v3+ — replaced with a custom inline table renderer in update.js, discover.js, and rollback.js:

// Before
ux.table(plugins, columns)

// After — custom renderer using this.log() with padEnd alignment
const widths = headers.map((h, i) => Math.max(h.length, ...plugins.map(p => getters[i](p).length)) + 2)
this.log(headers.map((h, i) => h.padEnd(widths[i])).join(''))
for (const plugin of plugins) {
  this.log(getters.map((g, i) => g(plugin).padEnd(widths[i])).join(''))
}

Command.parse() now calls this.config.runHook('preparse', ...) — test mock configs updated to include runHook: jest.fn().mockResolvedValue({ successes: [], failures: [] }).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scarf.sh
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./report.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>TypeError: opts.getPluginsList is not a function</issue_title>
<issue_description>### Expected Behaviour

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Environment Info

  System:
    OS: macOS 26.3.1
    CPU: (11) arm64 Apple M3 Pro
    Memory: 869.97 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.8 - /node/v18.20.8/bin/node
    Yarn: Not Found
    npm: 10.8.2 - /node/v18.20.8/bin/npm
  Virtualization:
    Docker: Not Found
  npmGlobalPackages:
    @adobe/aio-cli: 11.0.1

I am trying to download plugins and below issue happened,
aio plugins
TypeError: opts.getPluginsList is not a function
</issue_description>

<agent_instructions> This is an @oclif/core version mismatch. The @oclif/plugin-plugins package has its own nested
@oclif/core v4.8.4 (which defines getPluginsList()), but it's receiving a config object from
the top-level @oclif/core v2.11.7 (which doesn't have that method).</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@shazron We'll investigate, but in the meantime, what are you trying to do exactly? Maybe I can help with a workaround @shazron Some info from Claude: ``` This is an @oclif/core version mismatch. The @oclif/plugin-plugins package has its own nested @oclif/core v4.8.4 (which defines getPluginsList()), but it's receiving a config object from the top-level @oclif/core v2.11.7 (which doesn't have that method). ``` https://github.com/oclif/core/blob/5216f20f5628316384d62cd5a8357413d7f5569b/src/config/config.ts#L135 `oclif:config reloading config from @oclif/core@2.11.7 to @oclif/core@4.8.4`

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

… replacing ux.table

Co-authored-by: purplecabbage <46134+purplecabbage@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix TypeError related to opts.getPluginsList function Fix TypeError: opts.getPluginsList is not a function Mar 10, 2026
@shazron
Copy link
Member

shazron commented Mar 10, 2026

The true fix is to pin oclif/core to a newer patch version see #778

@shazron shazron closed this Mar 10, 2026
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

Successfully merging this pull request may close these issues.

TypeError: opts.getPluginsList is not a function

3 participants