web-artifacts-builder: pre-installed resizable component crashes with React #130 against the react-resizable-panels version the script installs
Summary
skills/web-artifacts-builder/scripts/init-artifact.sh installs react-resizable-panels unpinned (line 273), which today resolves to 4.13.3, and then extracts skills/web-artifacts-builder/scripts/shadcn-components.tar.gz (line 277) whose components/ui/resizable.tsx references PanelGroup and PanelResizeHandle — names that v4 renamed to Group and Separator.
So one of the "✅ 40+ shadcn/ui components pre-installed" that SKILL.md:36 advertises is dead on arrival: rendering it throws Minified React error #130 ("Element type is invalid … got: undefined"), because the component the vendored file passes to _jsx() is undefined.
$ node -e "console.log(Object.keys(require('react-resizable-panels')).sort().join(', '))" # 4.13.3, as installed
Group, Panel, Separator, SeparatorOverlay, isCoarsePointer, useDefaultLayout, useGroupCallbackRef, useGroupRef, usePanelCallbackRef, usePanelRef
$ node -e "console.log(Object.keys(require('react-resizable-panels')).sort().join(', '))" # 3.0.6, after the pin
DATA_ATTRIBUTES, Panel, PanelGroup, PanelResizeHandle, assert, customizeGlobalCursorStyles, disableGlobalCursorStyles, enableGlobalCursorStyles, getIntersectingRectangle, getPanelElement, getPanelElementsForGroup, getPanelGroupElement, getResizeHandleElement, getResizeHandleElementIndex, getResizeHandleElementsForGroup, getResizeHandlePanelIds, intersects, setNonce, usePanelGroupContextEnvironment
Windows 10.0.26200, Node v24.18.0, pnpm 12.4.2. React 19.3.0, react-resizable-panels 4.13.3 (what the unpinned install resolves today; latest on the registry is 4.14.1). Playwright 1.63.0 / Chromium for the browser check.
The project was produced by the repo's own scripts/init-artifact.sh (it exits 0 on this box); the only thing I added is a probe entry component.
Reproduction
src/App.tsx imports every one of the 43 components the tarball ships, keeps a {name: namespace} registry, and renders four of them — the vendored resizable, plus accordion, calendar and dialog as controls — each inside its own React.Component error boundary that records the message into a data-msg attribute:
<Boundary label="resizable">
<MODULES.resizable.ResizablePanelGroup direction="horizontal">
<MODULES.resizable.ResizablePanel defaultSize={50}>a</MODULES.resizable.ResizablePanel>
<MODULES.resizable.ResizableHandle withHandle />
<MODULES.resizable.ResizablePanel defaultSize={50}>b</MODULES.resizable.ResizablePanel>
</MODULES.resizable.ResizablePanelGroup>
</Boundary>1. The bundler already says it
$ pnpm exec vite build --outDir dist_v3 --emptyOutDir --base ./
rc=0
[IMPORT_IS_UNDEFINED] Import `PanelGroup` will always be undefined because there is no matching export in
'node_modules/.pnpm/[email protected]_…/react-resizable-panels/dist/react-resizable-panels.js'
╭─[ src/components/ui/resizable.tsx:5:79 ]
[IMPORT_IS_UNDEFINED] Import `PanelResizeHandle` will always be undefined because there is no matching export in
'node_modules/.pnpm/[email protected]_…/react-resizable-panels/dist/react-resizable-panels.js'The build still exits 0, so nothing stops an artifact that silently contains a dead component.
2. In the browser it throws
Served dist_v3/index.html over http.server and read the boundaries with headless Chromium:
mounted 1 undef []
resizable failed=True rendered=223 Minified React error #130; … ?args[]=undefined&args[]=
calendar failed=False rendered=57367
accordion failed=False rendered=1407
dialog failed=False rendered=0
console errors 1rendered=223 is the boundary's own <pre>: the component contributed nothing to the DOM. The three controls render, so this is not a React-19 or general setup problem.
3. A typecheck of all 43 vendored components (isolated tsconfig, include: [src/components, src/lib, src/hooks])
src/components/ui/calendar.tsx(85,9): error TS2353: … 'table' does not exist in type 'Partial<ClassNames>'
src/components/ui/resizable.tsx(9,51): error TS2339: Property 'PanelGroup' does not exist on type 'typeof import("…/react-resizable-panels")'
src/components/ui/resizable.tsx(10,23): error TS2339: Property 'PanelGroup' does not exist …
src/components/ui/resizable.tsx(25,51): error TS2339: Property 'PanelResizeHandle' does not exist …
src/components/ui/resizable.tsx(28,23): error TS2339: Property 'PanelResizeHandle' does not exist …
src/components/ui/resizable.tsx(40,24): error TS2339: Property 'PanelResizeHandle' does not exist …6 errors, 2 files. resizable.tsx is the one that breaks at runtime. calendar.tsx's single error is the table key that react-day-picker v10 dropped from ClassNames — type-level only: the same probe shows Calendar rendering 57 KB of DOM with zero console errors, so I did not touch that pin here.
Proposed fix
Hold the package to the major the vendored file was written against — the script already pins [email protected] for the same kind of reason (line 78). The alternative is regenerating shadcn-components.tar.gz for v4's Group/Separator names, which is a binary blob update for one component.
-pnpm install sonner cmdk vaul embla-carousel-react react-day-picker react-resizable-panels date-fns react-hook-form @hookform/resolvers zod
+# major 3 only: the vendored components/ui/resizable.tsx (shadcn-components.tar.gz, extracted below)
+# uses the pre-v4 PanelGroup/PanelResizeHandle exports, which v4 renamed to Group/Separator
+pnpm install sonner cmdk vaul embla-carousel-react react-day-picker react-resizable-panels@^3 date-fns react-hook-form @hookform/resolvers zodVerified: pnpm install react-resizable-panels@^3 resolves to 3.0.6, bash -n passes, and re-running the same probe end to end gives
$ pnpm exec vite build … → rc=0, IMPORT_IS_UNDEFINED count = 0
$ tsc -p tsconfig.check.json → 1 error (calendar.tsx only; the 5 resizable ones are gone)
$ chromium probe
resizable failed=False rendered=2226
calendar failed=False rendered=57367
accordion failed=False rendered=1407
dialog failed=False rendered=0
console errors 0Checked and not the cause
- The
.parcelrcthatbundle-artifact.shwrites is not involved: I removed it and the failure is byte-identical. (Separately, and independently of this issue,parcel buildof any Radix-using app fails on this box at@radix-ui/primitive/is-developmentresolution, with or without that file — I'm not proposing anything for it since the fault looks to be in Parcel/Radix, not in this skill.) - Not a bad tarball extract: all 43 files land under
src/components/ui/, the@/*alias resolves (undef []= every module loaded), and only these two reference a missing export.
Source: anthropics/skills