Skip to content

Toolpad core does not work correctly with Turbopack #4862

Description

@a88zach

Steps to reproduce

Steps:

  1. Download the reproduction here: https://github.com/a88zach/issue-4862
  2. Install dependencies $ npm install --force
  3. Start the dev server $npm run dev
  4. Login using the test email and test password
  5. Switch the account in the toolbar actions
  6. Click on another page in the side navigation

Bug: Notice the account was reset to to the original value. If you watch the console, you can also see that the application does a full reload on every navigation action

Current behavior

When running with Turbopack, the application does a full reload whenever navigating to a new page. If you remove the --turbo flag from the dev command, it works as designed, or run $ npm run dev-no-turbo

Expected behavior

The dashboard components should work when using Turbopack

Context

No response

Your environment

npx @mui/envinfo
  System:
    OS: macOS 15.3.2
  Binaries:
    Node: 22.13.1 - ~/.nvm/versions/node/v22.13.1/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.13.1/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 135.0.7049.96
    Edge: Not Found
    Safari: 18.3.1
  npmPackages:
    @emotion/react: ^11 => 11.14.0 
    @emotion/styled: ^11 => 11.14.0 
    @mui/core-downloads-tracker:  6.4.11 
    @mui/icons-material: ^6 => 6.4.11 
    @mui/material: ^6 => 6.4.11 
    @mui/material-nextjs: ^6 => 6.4.3 
    @mui/private-theming:  7.0.2 
    @mui/styled-engine:  7.0.2 
    @mui/system:  7.0.2 
    @mui/types:  7.2.24 
    @mui/utils:  6.4.9 
    @mui/x-charts: ^7 => 7.29.0 
    @mui/x-charts-vendor:  7.20.0 
    @mui/x-data-grid: ^7 => 7.29.0 
    @mui/x-data-grid-premium:  7.29.0 
    @mui/x-data-grid-pro:  7.29.0 
    @mui/x-date-pickers: ^7 => 7.29.0 
    @mui/x-internals:  7.29.0 
    @mui/x-license:  7.29.0 
    @mui/x-tree-view: ^7 => 7.29.0 
    @toolpad/core: ^0.13.0 => 0.13.0 
    @toolpad/utils:  0.13.0 
    @types/react: ^19.0.0 => 19.1.2 
    react: ^19.0.0 => 19.1.0 
    react-dom: ^19.0.0 => 19.1.0 
    typescript: ^5 => 5.8.3 

Search keywords: turbo turbopack

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: toolpad-coreAbbreviated to "core"

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions