Skip to content

[bug]: resizable.tsx imports non-existent export PanelGroup from react-resizable-panels #9200

@minh261002

Description

@minh261002

Describe the bug

When using the shadcn/ui resizable component, the generated file imports PanelGroup from react-resizable-panels, but in [email protected] that export does not exist, causing a build error.
This looks like a shadcn/ui template mismatch with the current react-resizable-panels API/version.

Affected component/components

resizable

How to reproduce

  1. Create-next-app (App Router)
  2. Shadcn init
  3. Shadcn add resizable
    pnpm dev
    → Error: Export PanelGroup doesn't exist in target module from [email protected]

Codesandbox/StackBlitz link

No response

Logs

Export PanelGroup doesn't exist in target module
./packages/ui/src/components/resizable.tsx (5:1)

  3 | import * as React from "react";
  4 | import { GripVerticalIcon } from "lucide-react";
> 5 | import * as ResizablePrimitive from "react-resizable-panels";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The export PanelGroup was not found in module .../node_modules/react-resizable-panels/dist/react-resizable-panels.js
Did you mean to import Panel?

./packages/ui/src/components/resizable.tsx
./apps/web/modules/dashboard/ui/layouts/conversations-layout.tsx
./apps/web/app/(dashboard)/conversations/layout.tsx

System Info

OS: macOS (Apple Silicon)
Node.js: v20.x
Package Manager: pnpm v9.x
Framework: Next.js (App Router)
React: 19.2.3
shadcn/ui: latest
react-resizable-panels: 4.0.15
lucide-react: latest
Tailwind CSS: v4
Monorepo: Turborepo / workspace packages (ui package consumed by Next.js app)
Build target: App Router (RSC + Client Components)
Bundler: Next.js (Turbopack / Webpack)

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions