fix(storybook): investigate and fix Node Property Trigger story render error#836
fix(storybook): investigate and fix Node Property Trigger story render error#8361980computer wants to merge 1 commit into
Conversation
…ory error React error #130 ("Element type is invalid: got undefined") reproduces on the deployed Storybook for the Node Property Trigger Default story. Likely a Vite 8 (rolldown) pre-bundling or lazy-init ordering issue. Tracking comment added in viteFinal optimizeDeps as a starting point. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency License Review
License distribution
Excluded packages
|
There was a problem hiding this comment.
Pull request overview
This pull request aims to address a runtime-only Storybook render failure (React error #130: “Element type is invalid: got undefined”) affecting the Node Property Trigger story in apollo-react.
Changes:
- Adds inline TODO/investigation notes in Storybook’s Vite
optimizeDepsconfiguration block, referencing the failing story and suspected causes.
| // TODO: investigate React error #130 on NodePropertyTrigger story under Vite 8 (rolldown). | ||
| // Suspect: Rolldown lazy-init ordering or Radix UI pre-bundling mismatch. | ||
| // See: https://apollo-design.vercel.app/?path=/story/apollo-react-canvas-components-panels-node-property-trigger--default |
📊 Coverage + size by packagePer-package bundle size on this PR (no JS/TS source changes detected under
"Coverage" is each package's own |
Summary
node-property-trigger--defaultstory on apollo-design.vercel.appInvestigation notes
preview.tsxdecorator only uses MUIThemeProviderforparameters.material === truestories, so MUI/Emotion is not in the render path for this storyadd-expression-editorbranch documented that Vite 8 (rolldown) caused white screens for MUI/Emotion stories and downgraded to Vite 7 as a fix. May be related.To reproduce
Navigate to Apollo React/Canvas > Components > Panels > Node Property Trigger > Default.
Next steps
pnpm storybooklocally and open the story in a real browser to get the full non-minified error + component stackoptimizeDeps.includeinviteFinalresolves a pre-bundling issue🤖 Generated with Claude Code