Skip to content

🐛 Bug: shell-docs build logs ~240 "Unknown icon detected" warnings from lucideIconsPlugin #8409

Open

Description

@Laptopmini

♻️ Reproduction Steps

  1. Check out main (tested at 7b88608).
  2. cd showcase/shell-docs && npm ci && npm run showcase-data
  3. node_modules/.bin/next build 2>&1 | grep -c "Unknown icon detected" prints 240.
  4. next start and open any docs page: the warnings print again on the first request.

Cause: liveSource and referenceSource in src/lib/live-source.ts (lines 120 and 144) use Fumadocs' stock lucideIconsPlugin(). It looks each icon up by its bare name in lucide-react's icons map. Every icon in src/content frontmatter and meta.json has a prefix (lucide/Play, custom/a2a) carried over from the old shell-docs icon resolver, so no name matches. The plugin warns and sets the icon to undefined.

✅ Expected Behavior

A clean build log. The plugin has no visible effect today:

  • The sidebar draws rows without icons on purpose: strip() in src/lib/live-nav.ts drops icon, except for the cookbook.
  • Cookbook logos come from folderSource(), which doesn't use the plugin. src/proto/live-tree.tsx maps their custom/... names through RECIPE_ICONS.
  • The only other reader of these trees, breadcrumbs() in src/lib/llms/live-search.ts, doesn't read icon.

So removing lucideIconsPlugin() from both loaders should silence the warnings without changing the output. Another option is a small icon plugin that understands the lucide/ and custom/ prefixes, if you want the icons back in the tree later. I'm happy to open a PR for whichever you prefer.

❌ Actual Behavior

About 240 lines like these in next build, and again in next start:

[lucide-icons-plugin] Unknown icon detected: lucide/Play.

Screenshots

No response

𝌚 CopilotKit Version

This is the docs app in the monorepo, not a package install:
CopilotKit main 7b88608455 (showcase/shell-docs)
fumadocs-core 16.17.8 (the plugin is unchanged in 16.19.3, the latest)
next 16.4.2, Node 24.14.1, macOS

📄 Logs (Optional)

[lucide-icons-plugin] Unknown icon detected: lucide/Play.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. copilotkit-outpost-bot commented on Nov 16, 2026

    @copilotkit-outpost-bot

    ⚠️ This is an AI-generated response.

    This needs a maintainer review to give you a reliable next step.


    🤖 Generated by CopilotKit AI Support · Documentation


    Was this helpful? React with 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions