Skip to content

BUG: Dashboard build fails with framer-motion 12.x GroupPlaybackControls import error #974

@e-gineer

Description

@e-gineer

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

  1. Run make all or make dashboard_assets
  2. 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.json specifies "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 GroupPlaybackControls export 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions