nextjs - 💡(How to fix) Fix .claude-plugin/marketplace.json: source path for cache-components is incorrect [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#92741Fetched 2026-04-15 06:18:36
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
closed ×1commented ×1labeled ×1locked ×1

Error Message

Error:

Root Cause

The marketplace.json specifies:

{ "source": "./plugins/cache-components" }

Source paths are resolved relative to the repository root. That resolves to plugins/cache-components/ at the repo root — which does not exist.

The actual plugin files live at:

.claude-plugin/plugins/cache-components/

Fix Action

Fix

Option A — Update the source path to include the .claude-plugin/ prefix:

{ "source": "./.claude-plugin/plugins/cache-components" }

Option B — Move the plugin directory to the repo root (consistent with how anthropics/claude-code organizes its marketplace):

plugins/cache-components/   ← move from .claude-plugin/plugins/cache-components/

Code Example

claude plugin marketplace add vercel/next.js --scope project
claude plugin install cache-components@nextjs --scope project

---

Failed to install plugin "cache-components@nextjs":
  Source path does not exist: ~/.claude/plugins/marketplaces/nextjs/plugins/cache-components

---

{ "source": "./plugins/cache-components" }

---

.claude-plugin/plugins/cache-components/

---

{ "source": "./.claude-plugin/plugins/cache-components" }

---

plugins/cache-components/   ← move from .claude-plugin/plugins/cache-components/
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/vercel/next.js/blob/canary/.claude-plugin/marketplace.json

To Reproduce

Install the cache-components plugin from this repo using the Claude Code plugin system:

claude plugin marketplace add vercel/next.js --scope project
claude plugin install cache-components@nextjs --scope project

Error:

✘ Failed to install plugin "cache-components@nextjs":
  Source path does not exist: ~/.claude/plugins/marketplaces/nextjs/plugins/cache-components

Current vs. Expected Behavior

Current behavior: Installation fails because the source path in .claude-plugin/marketplace.json resolves to a directory that does not exist.

Expected behavior: Installation succeeds.

Root cause

The marketplace.json specifies:

{ "source": "./plugins/cache-components" }

Source paths are resolved relative to the repository root. That resolves to plugins/cache-components/ at the repo root — which does not exist.

The actual plugin files live at:

.claude-plugin/plugins/cache-components/

Fix

Option A — Update the source path to include the .claude-plugin/ prefix:

{ "source": "./.claude-plugin/plugins/cache-components" }

Option B — Move the plugin directory to the repo root (consistent with how anthropics/claude-code organizes its marketplace):

plugins/cache-components/   ← move from .claude-plugin/plugins/cache-components/

Additional context

No Next.js version is affected — this is purely a misconfiguration in the .claude-plugin/marketplace.json manifest file.

extent analysis

TL;DR

Update the source path in .claude-plugin/marketplace.json to include the .claude-plugin/ prefix to fix the installation issue.

Guidance

  • Verify the source path in .claude-plugin/marketplace.json is correctly set to ./.claude-plugin/plugins/cache-components to ensure the plugin files are found.
  • Check the directory structure to confirm the plugin files are located at .claude-plugin/plugins/cache-components/ and not at the repository root.
  • Consider moving the plugin directory to the repo root (plugins/cache-components/) for consistency with other marketplaces, as an alternative solution.
  • Before making changes, ensure you have a backup of the original marketplace.json file to easily revert if needed.

Example

{ "source": "./.claude-plugin/plugins/cache-components" }

This updated source path should resolve the installation issue by correctly pointing to the plugin files.

Notes

This fix assumes the plugin files are indeed located at .claude-plugin/plugins/cache-components/ and the issue is solely due to the misconfigured source path in marketplace.json.

Recommendation

Apply workaround: Update the source path in .claude-plugin/marketplace.json to include the .claude-plugin/ prefix, as this is a straightforward fix that directly addresses the root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING