-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Create-next-app (App Router)
- Shadcn init
- 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.tsxSystem 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
Labels
bugSomething isn't workingSomething isn't working