Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[joy-ui][docs] Theme viewer throwing a client-side exception error #42308

Open
sambowenhughes opened this issue May 20, 2024 · 0 comments
Open
Assignees
Labels
docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@sambowenhughes
Copy link

sambowenhughes commented May 20, 2024

Steps to reproduce

Link to live example: (required)
https://mui.com/joy-ui/customization/theme-builder/

Steps:

  1. Navigate to the MUI Theme Builder
  2. Double-click on the Dark theme button
  3. See client Exception
Area.mp4

Current behavior

Client-Side Exception Error.

Console Error:

main-d9c74b1af963c3f2.js:1 TypeError: Cannot read properties of undefined (reading 'palette')
    at theme-builder-b2a624…7b468449.js:1:90006
    at Object.l5 [as useMemo] (framework-b6917e2005159cfe.js:17:101962)
    at t.useMemo (framework-b6917e2005159cfe.js:33:5984)
    at modules/components/JoyThemeBuilder.tsx (theme-builder-b2a624…7b468449.js:1:89942)
    at lD (framework-b6917e2005159cfe.js:17:97589)
    at oU (framework-b6917e2005159cfe.js:17:110090)
    at i (framework-b6917e2005159cfe.js:17:163565)
    at ia (framework-b6917e2005159cfe.js:17:147020)
    at framework-b6917e2005159cfe.js:17:146799
    at ir (framework-b6917e2005159cfe.js:17:146806)

Expected behavior

I'd expect the button to accept a double click without throwing the exception.

Context

I was experimenting with the Theme Builder when I came across this issue.

Your environment

  • Sidekick Browser Version 122.5
  • Google Chrome Version 124.0

Search keywords: Theme Viewer Client-Side Exception Error

@sambowenhughes sambowenhughes added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 20, 2024
@zannager zannager added package: system Specific to @mui/system customization: theme Centered around the theming features labels May 20, 2024
@danilo-leal danilo-leal changed the title Theme Viewer | Client-Side Exception Error [joy-ui][docs] Theme viewer throwing a client-side exception error May 22, 2024
@danilo-leal danilo-leal added docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy and removed package: system Specific to @mui/system customization: theme Centered around the theming features labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants