Skip to content

[docs] v6 dashboard template uses react-spring which is not react 19 compatible yet #45211

Open
@LittleColin

Description

@LittleColin

Related page

https://github.com/mui/material-ui/tree/v6.4.2/docs/data/material/getting-started/templates/dashboard

Kind of issue

Other

Issue description

The document says the only dependencies of the dashboard template are:

Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react, @mui/x-charts, @mui/x-date-pickers, @mui/x-data-grid, @mui/x-tree-view, dayjs

However the CustomisedTree uses react-spring - this has not yet been made react 19 compatible: pmndrs/react-spring#2341

So the template doesn't compile:

Module not found: Can't resolve '@react-spring/web'

Context

Trying to combine nextjs typescript template with the dashboard template from

material-ui/examples/material-ui-nextjs-ts (which is react 19)
with:
material-ui/docs/data/material/getting-started/templates/dashboard
material-ui/docs/data/material/getting-started/templates/shared-theme

Search keywords: react 19 react-spring dashboard template resolve @react-spring/web

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentationexternal dependencyBlocked by external dependency, we can’t do anything about it

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions