Skip to content

ncaught ReferenceError: can't access lexical declaration 'palette2' before initialization #45811

Open
@gmzacharydovel

Description

@gmzacharydovel

Steps to reproduce

Steps:

  1. Build the project with vite
  2. Sometimes it will give the error "ReferenceError: can't access lexical declaration 'palette2' before initialization"
  3. Removing "@vitejs/plugin-react" sometimes fixes it
  4. Totally stops loading the page
Image Image

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: palette

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions