-
Notifications
You must be signed in to change notification settings - Fork 46
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Description
Dashboard UI build fails with Attempted import error: 'GroupPlaybackControls' is not exported from 'motion-dom'. This is caused by an incompatibility between framer-motion 12.x and Storybook 8.6.14.
Severity
HIGH - Blocks all dashboard builds
Reproduction
- Run
make allormake dashboard_assets - Build fails during yarn build with:
Failed to compile. Attempted import error: 'GroupPlaybackControls' is not exported from 'motion-dom' (imported as 'GroupPlaybackControls').
Expected Behavior
Dashboard should build successfully
Current Behavior
Build fails due to breaking changes in motion-dom package (peer dependency of framer-motion 12.x)
Root Cause
package.jsonspecifies"framer-motion": "12.0.6"- framer-motion 12.x depends on motion-dom which has breaking API changes
- Storybook 8.6.14 has compatibility issues with the new motion-dom API
- The
GroupPlaybackControlsexport was removed/changed in motion-dom 12.x
Suggested Fix
Add yarn resolution to pin framer-motion to 11.11.17 (last stable version compatible with Storybook 8):
"resolutions": {
...
"framer-motion": "11.11.17"
}Related Code
ui/dashboard/package.json- framer-motion dependency and resolutions
Reactions are currently unavailable