remix-run / remix

Build Better Websites. Create modern, resilient user experiences with web fundamentals.
https://remix.run
MIT License
30.19k stars 2.56k forks source link

problems in setting up projects with MUI and internationalization #8268

Open rahad06 opened 11 months ago

rahad06 commented 11 months ago

Reproduction

https://github.com/rahad06/int-remix-mui/tree/tokyo

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H
    Memory: 1.86 GB / 15.62 GB
  Binaries:
    Node: 21.4.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (120.0.2210.61)
    Internet Explorer: 11.0.22621.1

Used Package Manager

npm

Expected Behavior

a simple mui admin dashboard with multiple languages

Actual Behavior

errors in using packages and peers

rahad06 commented 11 months ago

Error

Cannot read properties of undefined (reading 'type')

The stack trace is:

TypeError: Cannot read properties of undefined (reading 'type') at decomposeColor (file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:2092:14) at getLuminance (file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:2133:12) at getContrastRatio (file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:2138:14) at Object.getContrastText (file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:2459:24) at file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:167142:27 at muiStyledFunctionResolver (file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:2023:28) at transformedStyleArg (file:///C:/Users/R.Darabi/WebstormProjects/cst.core.remixpanel/build/index.js?t=1702371803174.4136:1943:83) at handleInterpolation (C:\Users\R.Darabi\WebstormProjects\cst.core.remixpanel\node_modules\@emotion\serialize\dist\emotion-serialize.cjs.dev.js:149:24) at Object.serializeStyles (C:\Users\R.Darabi\WebstormProjects\cst.core.remixpanel\node_modules\@emotion\serialize\dist\emotion-serialize.cjs.dev.js:263:15) at C:\Users\R.Darabi\WebstormProjects\cst.core.remixpanel\node_modules\@emotion\styled\base\dist\emotion-styled-base.cjs.dev.js:167:34

The error name is: TypeError

The error cause is: